From 7daaf88c70bf883584944d4b6e758f55a0a5710e Mon Sep 17 00:00:00 2001 From: Ahmed Bougacha Date: Fri, 24 Feb 2017 00:34:47 +0000 Subject: [GlobalISel] Use the same name for all remarks. While there, switch to the explicit ctor. llvm-svn: 296059 --- llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index 0602e480383..c78de71a0e2 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -1072,8 +1072,8 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &CurMF) { raw_string_ostream InstStr(InstStrStorage); InstStr << Inst; - OptimizationRemarkMissed R("gisel-irtranslator", "IRTranslatorFailure: ", - &Inst); + OptimizationRemarkMissed R("gisel-irtranslator", "GISelFailure", + Inst.getDebugLoc(), &BB); R << "unable to translate instruction: " << ore::NV("Opcode", &Inst) << ": '" << InstStr.str() << "'"; reportTranslationError(*MF, *TPC, *ORE, R); -- cgit v1.2.3