[GlobalISel] Use the same name for all remarks.
While there, switch to the explicit ctor.
llvm-svn: 296059
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index 0602e48..c78de71 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -1072,8 +1072,8 @@
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);