projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
490359d
)
Print out debug info when printing the machine instruction.
author
Bill Wendling
<isanbard@gmail.com>
Thu, 19 Feb 2009 21:44:55 +0000
(21:44 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Thu, 19 Feb 2009 21:44:55 +0000
(21:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65067
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineInstr.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineInstr.cpp
b/lib/CodeGen/MachineInstr.cpp
index d4a60bc6ae88281e72dccec253c3d6484824633b..7bb616468c134cab8c96aed4aeb92626c9d79710 100644
(file)
--- a/
lib/CodeGen/MachineInstr.cpp
+++ b/
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";
}