summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-19 21:44:55 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-19 21:44:55 +0000
commit1a0a3d0ff5a99476bb4ae75aafd095083f80a24b (patch)
treedfbcceebfc509afec9ccedcd5d60a10906dd338c
parent18e1444f82e2bcebca4db062f83661f0f62110e8 (diff)
downloadbcm5719-llvm-1a0a3d0ff5a99476bb4ae75aafd095083f80a24b.tar.gz
bcm5719-llvm-1a0a3d0ff5a99476bb4ae75aafd095083f80a24b.zip
Print out debug info when printing the machine instruction.
llvm-svn: 65067
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index d4a60bc6ae8..7bb616468c1 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -874,6 +874,15 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
}
}
+ if (!debugLoc.isUnknown()) {
+ const MachineFunction *MF = getParent()->getParent();
+ DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc);
+ OS << " [dbg: "
+ << DLT.Src << ","
+ << DLT.Line << ","
+ << DLT.Col << "]";
+ }
+
OS << "\n";
}
OpenPOWER on IntegriCloud