diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2017-02-24 00:34:47 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2017-02-24 00:34:47 +0000 |
commit | 7daaf88c70bf883584944d4b6e758f55a0a5710e (patch) | |
tree | 1cfc31696e75180b285a204e0bcd798b802370e0 | |
parent | 7c88a4e12b9652c8fbea593d092bf06d5114aaf4 (diff) | |
download | bcm5719-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.cpp | 4 |
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); |