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:
8d06ffc
)
Add type output to llvm-dis. Patch by Yuri!
author
Stuart Hastings
<stuart@apple.com>
Thu, 17 Mar 2011 16:30:14 +0000
(16:30 +0000)
committer
Stuart Hastings
<stuart@apple.com>
Thu, 17 Mar 2011 16:30:14 +0000
(16:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127813
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-dis/llvm-dis.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-dis/llvm-dis.cpp
b/tools/llvm-dis/llvm-dis.cpp
index d1ac9de3071ec0b87c58ffb6277578d39a0971ca..7453d9e9f457093543334a45aff6a898ee026cbe 100644
(file)
--- a/
tools/llvm-dis/llvm-dis.cpp
+++ b/
tools/llvm-dis/llvm-dis.cpp
@@
-74,7
+74,7
@@
public:
if (!V.getType()->isVoidTy()) {
OS.PadToColumn(50);
Padded = true;
- OS << "; [#uses=" << V.getNumUses() <<
']'; // Output # uses
+ OS << "; [#uses=" << V.getNumUses() <<
" type=" << V.getType()->getDescription() << "]"; // Output # uses and type
}
if (const Instruction *I = dyn_cast<Instruction>(&V)) {
const DebugLoc &DL = I->getDebugLoc();