summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-02-15 15:24:01 +0000
committerKamil Rytarowski <n54@gmx.com>2018-02-15 15:24:01 +0000
commita6affc2fab8a2a68aba6ae235e195fff8b8e2d07 (patch)
tree5cc41bb6f03e2bd1939690f35d9685a72088b43d
parent7d15ab6aef706d80db611fbb9077b03e9cef4089 (diff)
downloadbcm5719-llvm-a6affc2fab8a2a68aba6ae235e195fff8b8e2d07.tar.gz
bcm5719-llvm-a6affc2fab8a2a68aba6ae235e195fff8b8e2d07.zip
Try to unbreak Darwin after XRay/FreeBSD commit
Add a fallback definition of getTSCFrequency(). llvm-svn: 325249
-rw-r--r--compiler-rt/lib/xray/xray_x86_64.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/xray/xray_x86_64.cc b/compiler-rt/lib/xray/xray_x86_64.cc
index 1504c7b2233..50a697a2c30 100644
--- a/compiler-rt/lib/xray/xray_x86_64.cc
+++ b/compiler-rt/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;
OpenPOWER on IntegriCloud