summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-09-02 08:52:23 +0000
committerDuncan Sands <baldrick@free.fr>2010-09-02 08:52:23 +0000
commit8dda07428a771599136730cc38fb5b2816b40061 (patch)
tree94a1667be6694a38d45efdeaf10e0f5729d3aa83 /llvm/lib/VMCore/AsmWriter.cpp
parent9a6f8ee32c5d6528fe852fce4eaf1a52c80889d0 (diff)
downloadbcm5719-llvm-8dda07428a771599136730cc38fb5b2816b40061.tar.gz
bcm5719-llvm-8dda07428a771599136730cc38fb5b2816b40061.zip
Print the number of uses of a function in the .ll since it can be informative
and there seems to be no reason not to. llvm-svn: 112812
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index ab9dd3e7f96..ce1b6f1e21e 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -1635,9 +1635,9 @@ void AssemblyWriter::printFunction(const Function *F) {
if (F->hasGC())
Out << " gc \"" << F->getGC() << '"';
if (F->isDeclaration()) {
- Out << "\n";
+ Out << " ; [#uses=" << F->getNumUses() << "]\n"; // Output # uses
} else {
- Out << " {";
+ Out << " { ; [#uses=" << F->getNumUses() << ']'; // Output # uses
// Output all of its basic blocks... for the function
for (Function::const_iterator I = F->begin(), E = F->end(); I != E; ++I)
OpenPOWER on IntegriCloud