File tree 1 file changed +6
-5
lines changed
compiler/rustc_llvm/llvm-wrapper
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -732,12 +732,7 @@ extern "C" LLVMRustResult LLVMRustOptimize(
732
732
PTO.SLPVectorization = SLPVectorize;
733
733
PTO.MergeFunctions = MergeFunctions;
734
734
735
- // FIXME: We may want to expose this as an option.
736
- bool DebugPassManager = false ;
737
-
738
735
PassInstrumentationCallbacks PIC;
739
- StandardInstrumentations SI (TheModule->getContext (), DebugPassManager);
740
- SI.registerCallbacks (PIC);
741
736
742
737
if (LlvmSelfProfiler) {
743
738
LLVMSelfProfileInitializeCallbacks (PIC, LlvmSelfProfiler,
@@ -783,6 +778,12 @@ extern "C" LLVMRustResult LLVMRustOptimize(
783
778
FunctionAnalysisManager FAM;
784
779
CGSCCAnalysisManager CGAM;
785
780
ModuleAnalysisManager MAM;
781
+
782
+ // FIXME: We may want to expose this as an option.
783
+ bool DebugPassManager = false ;
784
+
785
+ StandardInstrumentations SI (TheModule->getContext (), DebugPassManager);
786
+ SI.registerCallbacks (PIC, &MAM);
786
787
787
788
if (LLVMPluginsLen) {
788
789
auto PluginsStr = StringRef (LLVMPlugins, LLVMPluginsLen);
You can’t perform that action at this time.
0 commit comments