bool Success = translate(*CV, VReg);
if (!Success) {
OptimizationRemarkMissed R("gisel-irtranslator", "GISelFailure",
- DebugLoc(),
+ MF->getFunction()->getSubprogram(),
&MF->getFunction()->getEntryBlock());
R << "unable to translate constant: " << ore::NV("Type", Val.getType());
reportTranslationError(*MF, *TPC, *ORE, R);
for (const Argument &Arg: F.args())
VRegArgs.push_back(getOrCreateVReg(Arg));
if (!CLI->lowerFormalArguments(EntryBuilder, F, VRegArgs)) {
- OptimizationRemarkMissed R("gisel-irtranslator", "GISelFailure", DebugLoc(),
+ OptimizationRemarkMissed R("gisel-irtranslator", "GISelFailure",
+ MF->getFunction()->getSubprogram(),
&MF->getFunction()->getEntryBlock());
R << "unable to lower arguments: " << ore::NV("Prototype", F.getType());
reportTranslationError(*MF, *TPC, *ORE, R);
if (MF.size() != NumBlocks) {
MachineOptimizationRemarkMissed R("gisel-select", "GISelFailure",
- DebugLoc(), /*MBB=*/nullptr);
+ MF.getFunction()->getSubprogram(),
+ /*MBB=*/nullptr);
R << "inserting blocks is not supported yet";
reportGISelFailure(MF, TPC, MORE, R);
return false;