Skip to content

Commit a94fa89

Browse files
committed
Fix timeTraceProfilerInitialize for LLVM 10
1 parent 66008eb commit a94fa89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rustllvm/PassWrapper.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ extern "C" void LLVMInitializePasses() {
6767
}
6868

6969
extern "C" void LLVMTimeTraceProfilerInitialize() {
70-
#if LLVM_VERSION_GE(9, 0)
70+
#if LLVM_VERSION_GE(10, 0)
71+
timeTraceProfilerInitialize(
72+
/* TimeTraceGranularity */ 0,
73+
/* ProcName */ "rustc");
74+
#elif LLVM_VERSION_GE(9, 0)
7175
timeTraceProfilerInitialize();
7276
#endif
7377
}

0 commit comments

Comments
 (0)