Skip to content

Commit 68c3fe6

Browse files
committed
Added the new MMI constructor to the updated MachineStableHashTest.cpp.
1 parent 42a34c1 commit 68c3fe6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/unittests/MIR/MachineStableHashTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ body: |
199199
RET undef $lr
200200
...
201201
)MIR";
202-
MachineModuleInfo MMI(TM.get());
202+
MCContext MCCtx(TM->getTargetTriple(), TM->getMCAsmInfo(),
203+
TM->getMCRegisterInfo(), TM->getMCSubtargetInfo(), nullptr,
204+
&TM->Options.MCOptions, false);
205+
MachineModuleInfo MMI(*TM, MCCtx);
203206
M = parseMIR(*TM, MIRString, MMI);
204207
ASSERT_TRUE(M);
205208
auto *MF1 = MMI.getMachineFunction(*M->getFunction("f1"));

0 commit comments

Comments
 (0)