@@ -250,7 +250,7 @@ body: |
250250 auto *NewMMO = MF->getMachineMemOperand (OldMMO, AAInfo);
251251 MI.setMemRefs (*MF, NewMMO);
252252
253- MachineModuleSlotTracker MST (MMI, MF);
253+ MachineModuleSlotTracker MST ([&]( const Function& F) { return MMI. getMachineFunction (F); } , MF);
254254 // Print that MI with new machine metadata, which slot numbers should be
255255 // assigned.
256256 EXPECT_EQ (" %1:gpr32 = LDRWui %0, 0 :: (load (s32) from %ir.p, "
@@ -274,7 +274,7 @@ body: |
274274 EXPECT_EQ (Collected, Generated);
275275
276276 // FileCheck the output from MIR printer.
277- std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, MMI, *MF); });
277+ std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, & MMI, nullptr , *MF); });
278278 std::string CheckString = R"(
279279CHECK: machineMetadataNodes:
280280CHECK-DAG: ![[MMDOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"domain"}
@@ -400,7 +400,7 @@ body: |
400400 auto *NewMMO = MF->getMachineMemOperand (OldMMO, AAInfo);
401401 MI.setMemRefs (*MF, NewMMO);
402402
403- MachineModuleSlotTracker MST (MMI, MF);
403+ MachineModuleSlotTracker MST ([&]( const Function& F) { return MMI. getMachineFunction (F); } , MF);
404404 // Print that MI with new machine metadata, which slot numbers should be
405405 // assigned.
406406 EXPECT_EQ (" %1:gr32 = MOV32rm %0, 1, $noreg, 0, $noreg :: (load (s32) from %ir.p, "
@@ -424,7 +424,7 @@ body: |
424424 EXPECT_EQ (Collected, Generated);
425425
426426 // FileCheck the output from MIR printer.
427- std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, MMI, *MF); });
427+ std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, & MMI, nullptr , *MF); });
428428 std::string CheckString = R"(
429429CHECK: machineMetadataNodes:
430430CHECK-DAG: ![[MMDOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"domain"}
@@ -498,7 +498,7 @@ body: |
498498 auto *NewMMO = MF->getMachineMemOperand (OldMMO, AAInfo);
499499 MI.setMemRefs (*MF, NewMMO);
500500
501- MachineModuleSlotTracker MST (MMI, MF);
501+ MachineModuleSlotTracker MST ([&]( const Function& F) { return MMI. getMachineFunction (F); } , MF);
502502 // Print that MI with new machine metadata, which slot numbers should be
503503 // assigned.
504504 EXPECT_EQ (
@@ -523,7 +523,7 @@ body: |
523523 EXPECT_EQ (Collected, Generated);
524524
525525 // FileCheck the output from MIR printer.
526- std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, MMI, *MF); });
526+ std::string Output = print ([&](raw_ostream &OS) { printMIR (OS, & MMI, nullptr , *MF); });
527527 std::string CheckString = R"(
528528CHECK: machineMetadataNodes:
529529CHECK-DAG: ![[MMDOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"domain"}
0 commit comments