[llvm] r296059 - [GlobalISel] Use the same name for all remarks.
Ahmed Bougacha via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 16:34:47 PST 2017
Author: ab
Date: Thu Feb 23 18:34:47 2017
New Revision: 296059
URL: http://llvm.org/viewvc/llvm-project?rev=296059&view=rev
Log:
[GlobalISel] Use the same name for all remarks.
While there, switch to the explicit ctor.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp?rev=296059&r1=296058&r2=296059&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp Thu Feb 23 18:34:47 2017
@@ -1072,8 +1072,8 @@ bool IRTranslator::runOnMachineFunction(
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);
More information about the llvm-commits
mailing list