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
|
// cargo run tests in multhreading mode by default
|
||||||
// so use atomics for coverage counters
|
// so use atomics for coverage counters
|
||||||
Options.Atomic = true;
|
Options.Atomic = true;
|
||||||
|
#if LLVM_VERSION_GE(18, 0)
|
||||||
|
MPM.addPass(InstrProfilingLoweringPass(Options, false));
|
||||||
|
#else
|
||||||
MPM.addPass(InstrProfiling(Options, false));
|
MPM.addPass(InstrProfiling(Options, false));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user