diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 48195d0598d..75016965128 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -636,16 +636,19 @@ void AssemblyWriter::printArgument(const Argument *Arg) { // void AssemblyWriter::printBasicBlock(const BasicBlock *BB) { if (BB->hasName()) { // Print out the label if it exists... - Out << "\n" << BB->getName() << ":"; - } else { + Out << "\n" << BB->getName() << ":\t\t\t\t\t;[#uses=" + << BB->use_size() << "]"; // Output # uses + } else if (!BB->use_empty()) { // Don't print block # of no uses... int Slot = Table.getValSlot(BB); Out << "\n;