summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2017-02-23 21:05:29 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2017-02-23 21:05:29 +0000
commit97119d48db056cd446e44cbf4561f695b4e54fb3 (patch)
tree63d1e95ca0f105beb634fe5e430c473aa27fcbb1 /llvm/lib/CodeGen/MachineInstr.cpp
parent0cf8cfa1656fd064f454757c76cef724cd7a04fb (diff)
downloadbcm5719-llvm-97119d48db056cd446e44cbf4561f695b4e54fb3.tar.gz
bcm5719-llvm-97119d48db056cd446e44cbf4561f695b4e54fb3.zip
[CodeGen] Print MI without a newline when skipping debugloc. NFC.
This matches the behavior for skip-operands. While there, document it. This is a follow-up to r296007. llvm-svn: 296011
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index acd61dddd20..f1e16565bca 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1988,7 +1988,9 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
}
if (isIndirectDebugValue())
OS << " indirect";
- } else if (debugLoc && MF && !SkipDebugLoc) {
+ } else if (SkipDebugLoc) {
+ return;
+ } else if (debugLoc && MF) {
if (!HaveSemi)
OS << ";";
OS << " dbg:";
OpenPOWER on IntegriCloud