summaryrefslogtreecommitdiff
path: root/tools/llvm-dis/llvm-dis.cpp
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2011-03-17 19:50:04 +0000
committerStuart Hastings <stuart@apple.com>2011-03-17 19:50:04 +0000
commitc74513d1b6e2f6c91533a23ebbdc47a6f1dfcc0c (patch)
tree47ced96049c26fe36ed73f6cbd2ecde68095691f /tools/llvm-dis/llvm-dis.cpp
parent11bd0784d935a669865fb8a27561286e05451365 (diff)
Reapply: Add type output to llvm-dis annotations. Patch by Yuri!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-dis/llvm-dis.cpp')
-rw-r--r--tools/llvm-dis/llvm-dis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index d1ac9de3071..7453d9e9f45 100644
--- 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();