mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Rollup merge of #118818 - krasimirgg:llvm-18-pass, r=nikic
llvm-wrapper: adapt for LLVM API change
LLVM commit 1d608fc755
renamed the pass.
r? ````@nikic````
This commit is contained in:
commit
dadecea9f1
@ -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
Block a user