[llvm-commits] [llvm] r127813 - /llvm/trunk/tools/llvm-dis/llvm-dis.cpp
Stuart Hastings
stuart at apple.com
Thu Mar 17 09:30:14 PDT 2011
Author: stuart
Date: Thu Mar 17 11:30:14 2011
New Revision: 127813
URL: http://llvm.org/viewvc/llvm-project?rev=127813&view=rev
Log:
Add type output to llvm-dis. Patch by Yuri!
Modified:
llvm/trunk/tools/llvm-dis/llvm-dis.cpp
Modified: llvm/trunk/tools/llvm-dis/llvm-dis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dis/llvm-dis.cpp?rev=127813&r1=127812&r2=127813&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dis/llvm-dis.cpp (original)
+++ llvm/trunk/tools/llvm-dis/llvm-dis.cpp Thu Mar 17 11:30:14 2011
@@ -74,7 +74,7 @@
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();
More information about the llvm-commits
mailing list