projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d15ab6
)
Try to unbreak Darwin after XRay/FreeBSD commit
author
Kamil Rytarowski
<n54@gmx.com>
Thu, 15 Feb 2018 15:24:01 +0000
(15:24 +0000)
committer
Kamil 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
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/xray/xray_x86_64.cc
b/compiler-rt/lib/xray/xray_x86_64.cc
index 1504c7b22333d02334ab2ed98e35ce8b2aafabc3..50a697a2c306175cbc489557c6293aa6a9d4f09d 100644
(file)
--- 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;