Fix timeTraceProfilerInitialize for LLVM 10
This commit is contained in:
parent
66008eb9e4
commit
a94fa896cc
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue