From: Stuart Hastings Date: Thu, 17 Mar 2011 16:30:14 +0000 (+0000) Subject: Add type output to llvm-dis. Patch by Yuri! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=98cc1ef3e95f302df6aa6500bc986c4ff5938725;p=oota-llvm.git Add type output to llvm-dis. Patch by Yuri! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127813 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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(&V)) { const DebugLoc &DL = I->getDebugLoc();