[compiler-rt] r325249 - Try to unbreak Darwin after XRay/FreeBSD commit

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 07:24:01 PST 2018


Author: kamil
Date: Thu Feb 15 07:24:01 2018
New Revision: 325249

URL: http://llvm.org/viewvc/llvm-project?rev=325249&view=rev
Log:
Try to unbreak Darwin after XRay/FreeBSD commit

Add a fallback definition of getTSCFrequency().

Modified:
    compiler-rt/trunk/lib/xray/xray_x86_64.cc

Modified: compiler-rt/trunk/lib/xray/xray_x86_64.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_x86_64.cc?rev=325249&r1=325248&r2=325249&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_x86_64.cc (original)
+++ compiler-rt/trunk/lib/xray/xray_x86_64.cc Thu Feb 15 07:24:01 2018
@@ -92,7 +92,10 @@ uint64_t getTSCFrequency() XRAY_NEVER_IN
     
 }
 #else
-#error "Platform not supported"
+uint64_t getTSCFrequency() XRAY_NEVER_INSTRUMENT {
+    /* Not supported */
+    return 0;
+}
 #endif
 
 static constexpr uint8_t CallOpCode = 0xe8;




More information about the llvm-commits mailing list