@@ -253,7 +253,7 @@ body: |
253253 auto *NewMMO = MF->getMachineMemOperand (OldMMO, AAInfo);
254254 MI.setMemRefs (*MF, NewMMO);
255255
256- MachineModuleSlotTracker MST (MF);
256+ MachineModuleSlotTracker MST (MMI, MF);
257257 // Print that MI with new machine metadata, which slot numbers should be
258258 // assigned.
259259 EXPECT_EQ (" %1:gpr32 = LDRWui %0, 0 :: (load (s32) from %ir.p, "
@@ -277,7 +277,7 @@ body: |
277277 EXPECT_EQ (Collected, Generated);
278278
279279 // FileCheck the output from MIR printer.
280- std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, *MF); });
280+ std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, MMI, *MF); });
281281 std::string CheckString = R"(
282282CHECK: machineMetadataNodes:
283283CHECK-DAG: ![[MMDOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"domain"}
@@ -403,7 +403,7 @@ body: |
403403 auto *NewMMO = MF->getMachineMemOperand (OldMMO, AAInfo);
404404 MI.setMemRefs (*MF, NewMMO);
405405
406- MachineModuleSlotTracker MST (MF);
406+ MachineModuleSlotTracker MST (MMI, MF);
407407 // Print that MI with new machine metadata, which slot numbers should be
408408 // assigned.
409409 EXPECT_EQ (" %1:gr32 = MOV32rm %0, 1, $noreg, 0, $noreg :: (load (s32) from %ir.p, "
@@ -427,7 +427,7 @@ body: |
427427 EXPECT_EQ (Collected, Generated);
428428
429429 // FileCheck the output from MIR printer.
430- std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, *MF); });
430+ std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, MMI, *MF); });
431431 std::string CheckString = R"(
432432CHECK: machineMetadataNodes:
433433CHECK-DAG: ![[MMDOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"domain"}
@@ -501,7 +501,7 @@ body: |
501501 auto *NewMMO = MF->getMachineMemOperand (OldMMO, AAInfo);
502502 MI.setMemRefs (*MF, NewMMO);
503503
504- MachineModuleSlotTracker MST (MF);
504+ MachineModuleSlotTracker MST (MMI, MF);
505505 // Print that MI with new machine metadata, which slot numbers should be
506506 // assigned.
507507 EXPECT_EQ (
@@ -526,7 +526,7 @@ body: |
526526 EXPECT_EQ (Collected, Generated);
527527
528528 // FileCheck the output from MIR printer.
529- std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, *MF); });
529+ std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, MMI, *MF); });
530530 std::string CheckString = R"(
531531CHECK: machineMetadataNodes:
532532CHECK-DAG: ![[MMDOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"domain"}
0 commit comments