diff options
author | Kamil Rytarowski <n54@gmx.com> | 2018-02-15 15:24:01 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2018-02-15 15:24:01 +0000 |
commit | f9f8aaa68dc527865bbb754e76ac5ab2b10b8aa4 (patch) | |
tree | 9920aa07804b453a249ea0cd3bf6cd3e2ac63f04 /lib | |
parent | ae2be2c202196c260e5cf3db4c6ba91e410cca71 (diff) |
Try to unbreak Darwin after XRay/FreeBSD commit
Add a fallback definition of getTSCFrequency().
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@325249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xray/xray_x86_64.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/xray/xray_x86_64.cc b/lib/xray/xray_x86_64.cc index 1504c7b22..50a697a2c 100644 --- a/lib/xray/xray_x86_64.cc +++ b/lib/xray/xray_x86_64.cc @@ -92,7 +92,10 @@ uint64_t getTSCFrequency() XRAY_NEVER_INSTRUMENT { } #else -#error "Platform not supported" +uint64_t getTSCFrequency() XRAY_NEVER_INSTRUMENT { + /* Not supported */ + return 0; +} #endif static constexpr uint8_t CallOpCode = 0xe8; |