mirror of https://github.com/rust-lang/rust.git
llvm-wrapper: adapt for LLVM API change
LLVM commit 1d608fc755
renamed the pass.
This commit is contained in:
parent
c13187c998
commit
a0c5079889
|
@ -841,7 +841,11 @@ LLVMRustOptimize(
|
|||
// cargo run tests in multhreading mode by default
|
||||
// so use atomics for coverage counters
|
||||
Options.Atomic = true;
|
||||
#if LLVM_VERSION_GE(18, 0)
|
||||
MPM.addPass(InstrProfilingLoweringPass(Options, false));
|
||||
#else
|
||||
MPM.addPass(InstrProfiling(Options, false));
|
||||
#endif
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue