summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2017-02-24 00:34:47 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2017-02-24 00:34:47 +0000
commit8959f2e32fd67b561f007c4a0ef481108c54b152 (patch)
tree725efa2f4e25226d22225795838eb4c16c1968e1
parentabdb8cba99613d19b5a1ad3871cd4cb14c55b5ab (diff)
[GlobalISel] Use the same name for all remarks.
While there, switch to the explicit ctor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296059 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/GlobalISel/IRTranslator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/GlobalISel/IRTranslator.cpp b/lib/CodeGen/GlobalISel/IRTranslator.cpp
index 0602e480383..c78de71a0e2 100644
--- a/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/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);