From 061269be9723f842931f18ad207acf9a66e0cf76 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 2 Oct 2002 19:38:55 +0000 Subject: [PATCH] - Print the predecessors of a basic block instead of the number of uses of the block in the AsmWriter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4019 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 4ba16621430..8c7b06ba0f1 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -21,6 +21,7 @@ #include "llvm/iPHINode.h" #include "llvm/iOther.h" #include "llvm/SymbolTable.h" +#include "llvm/Support/CFG.h" #include "Support/StringExtras.h" #include "Support/STLExtras.h" #include @@ -661,8 +662,7 @@ 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() << ":\t\t\t\t\t;[#uses=" - << BB->use_size() << "]"; // Output # uses + Out << "\n" << BB->getName() << ":"; } else if (!BB->use_empty()) { // Don't print block # of no uses... int Slot = Table.getValSlot(BB); Out << "\n;