summaryrefslogtreecommitdiffstats
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
commit7daaf88c70bf883584944d4b6e758f55a0a5710e (patch)
tree1cfc31696e75180b285a204e0bcd798b802370e0
parent7c88a4e12b9652c8fbea593d092bf06d5114aaf4 (diff)
downloadbcm5719-llvm-7daaf88c70bf883584944d4b6e758f55a0a5710e.tar.gz
bcm5719-llvm-7daaf88c70bf883584944d4b6e758f55a0a5710e.zip
[GlobalISel] Use the same name for all remarks.
While there, switch to the explicit ctor. llvm-svn: 296059
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp4
1 files changed, 2 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud