llvm-wrapper: adapt for LLVM API change
LLVM commit 1d608fc755
renamed the pass.
This commit is contained in:
parent
c13187c998
commit
a0c5079889
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue