File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,8 @@ class MachineModuleInfoWrapperPass : public ImmutablePass {
208
208
explicit MachineModuleInfoWrapperPass (const LLVMTargetMachine *TM,
209
209
MCContext *ExtContext);
210
210
211
+ explicit MachineModuleInfoWrapperPass (MachineModuleInfo &&MMI);
212
+
211
213
// Initialization and Finalization
212
214
bool doInitialization (Module &) override ;
213
215
bool doFinalization (Module &) override ;
Original file line number Diff line number Diff line change @@ -180,6 +180,11 @@ MachineModuleInfoWrapperPass::MachineModuleInfoWrapperPass(
180
180
initializeMachineModuleInfoWrapperPassPass (*PassRegistry::getPassRegistry ());
181
181
}
182
182
183
+ MachineModuleInfoWrapperPass::MachineModuleInfoWrapperPass (
184
+ MachineModuleInfo &&MMI): ImmutablePass(ID), MMI(std::move(MMI)) {
185
+ initializeMachineModuleInfoWrapperPassPass (*PassRegistry::getPassRegistry ());
186
+ }
187
+
183
188
// Handle the Pass registration stuff necessary to use DataLayout's.
184
189
INITIALIZE_PASS (MachineModuleInfoWrapperPass, " machinemoduleinfo" ,
185
190
" Machine Module Information" , false , false )
You can’t perform that action at this time.
0 commit comments