Try to unbreak Darwin after XRay/FreeBSD commit

Add a fallback definition of getTSCFrequency().

llvm-svn: 325249
This commit is contained in:
Kamil Rytarowski 2018-02-15 15:24:01 +00:00
parent 7d15ab6aef
commit a6affc2fab
1 changed files with 4 additions and 1 deletions

View 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;