1
Fork 0

Fix timeTraceProfilerInitialize for LLVM 10

This commit is contained in:
Nikita Popov 2020-02-04 20:35:50 +01:00
parent 66008eb9e4
commit a94fa896cc

View file

@ -67,7 +67,11 @@ extern "C" void LLVMInitializePasses() {
}
extern "C" void LLVMTimeTraceProfilerInitialize() {
#if LLVM_VERSION_GE(9, 0)
#if LLVM_VERSION_GE(10, 0)
timeTraceProfilerInitialize(
/* TimeTraceGranularity */ 0,
/* ProcName */ "rustc");
#elif LLVM_VERSION_GE(9, 0)
timeTraceProfilerInitialize();
#endif
}