Rollup merge of #104880 - krasimirgg:llvm-16-ctx, r=cuviper
[llvm-wrapper] adapt for LLVM API change
Adapt for the LLVM API changes from 721f975d35
.
Found via our experimental rust + llvm @ HEAD bot: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/15203#0184ae73-5169-4b9b-92f4-d4e6e9b86ad9/194-531
This commit is contained in:
commit
0f28e403d4
@ -627,7 +627,11 @@ LLVMRustOptimize(
|
|||||||
bool DebugPassManager = false;
|
bool DebugPassManager = false;
|
||||||
|
|
||||||
PassInstrumentationCallbacks PIC;
|
PassInstrumentationCallbacks PIC;
|
||||||
|
#if LLVM_VERSION_LT(16, 0)
|
||||||
StandardInstrumentations SI(DebugPassManager);
|
StandardInstrumentations SI(DebugPassManager);
|
||||||
|
#else
|
||||||
|
StandardInstrumentations SI(TheModule->getContext(), DebugPassManager);
|
||||||
|
#endif
|
||||||
SI.registerCallbacks(PIC);
|
SI.registerCallbacks(PIC);
|
||||||
|
|
||||||
if (LlvmSelfProfiler){
|
if (LlvmSelfProfiler){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user