Skip to content

Commit 7af7408

Browse files
committed
Fix timeTraceProfilerInitialize for LLVM 10
1 parent 39e04f2 commit 7af7408

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
@@ -59,7 +59,11 @@ extern "C" void LLVMInitializePasses() {
5959
}
6060

6161
extern "C" void LLVMTimeTraceProfilerInitialize() {
62-
#if LLVM_VERSION_GE(9, 0)
62+
#if LLVM_VERSION_GE(10, 0)
63+
timeTraceProfilerInitialize(
64+
/* TimeTraceGranularity */ 0,
65+
/* ProcName */ "rustc");
66+
#elif LLVM_VERSION_GE(9, 0)
6367
timeTraceProfilerInitialize();
6468
#endif
6569
}

0 commit comments

Comments
 (0)