Try to unbreak Darwin after XRay/FreeBSD commit
authorKamil Rytarowski <n54@gmx.com>
Thu, 15 Feb 2018 15:24:01 +0000 (15:24 +0000)
committerKamil Rytarowski <n54@gmx.com>
Thu, 15 Feb 2018 15:24:01 +0000 (15:24 +0000)
Add a fallback definition of getTSCFrequency().

llvm-svn: 325249

compiler-rt/lib/xray/xray_x86_64.cc

index 1504c7b22333d02334ab2ed98e35ce8b2aafabc3..50a697a2c306175cbc489557c6293aa6a9d4f09d 100644 (file)
@@ -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;