Reapply: Add type output to llvm-dis annotations. Patch by Yuri!

llvm-svn: 127824
This commit is contained in:
Stuart Hastings
2011-03-17 19:50:04 +00:00
parent 0d825132c6
commit ec54bd755f
2 changed files with 3 additions and 4 deletions

View File

@@ -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();