summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-01-19 11:44:42 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-01-19 11:44:42 +0000
commit548add992ea50a41f7f7daf539e7fa333a00c48d (patch)
treee39b36cf74a2e36c99276ee3b92b37ba7d93182c /llvm/lib/CodeGen/MIRPrinter.cpp
parent91f14e69b8f4d2cfa3905f6c25630935682837b3 (diff)
downloadbcm5719-llvm-548add992ea50a41f7f7daf539e7fa333a00c48d.tar.gz
bcm5719-llvm-548add992ea50a41f7f7daf539e7fa333a00c48d.zip
[CodeGen] Unify printing format of debug-location in both MIR and -debug
Use "debug-location" instead of "; dbg:" in MI::print. llvm-svn: 322936
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index 569d51aa28d..09316175a78 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -686,11 +686,11 @@ void MIPrinter::print(const MachineInstr &MI) {
NeedComma = true;
}
- if (MI.getDebugLoc()) {
+ if (const DebugLoc &DL = MI.getDebugLoc()) {
if (NeedComma)
OS << ',';
OS << " debug-location ";
- MI.getDebugLoc()->printAsOperand(OS, MST);
+ DL->printAsOperand(OS, MST);
}
if (!MI.memoperands_empty()) {
OpenPOWER on IntegriCloud