aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-11 00:01:02 +0000
committerChris Lattner <sabre@nondot.org>2002-11-11 00:01:02 +0000
commit60525942099d2a9e8e24f150eda491596a8929e7 (patch)
tree452540812f616736e32ae090fcad8b7389f12d4f /lib/Analysis
parent998c49c2472f29cfe2df0e87f35128858c178428 (diff)
downloadexternal_llvm-60525942099d2a9e8e24f150eda491596a8929e7.zip
external_llvm-60525942099d2a9e8e24f150eda491596a8929e7.tar.gz
external_llvm-60525942099d2a9e8e24f150eda491596a8929e7.tar.bz2
Print the right call set size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DataStructure/Printer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp
index 483d223..8b6bdcf 100644
--- a/lib/Analysis/DataStructure/Printer.cpp
+++ b/lib/Analysis/DataStructure/Printer.cpp
@@ -155,7 +155,9 @@ void DSGraph::writeGraphToFile(std::ostream &O, const string &GraphName) const {
if (F.good()) {
print(F);
- O << " [" << getGraphSize() << "+" << getFunctionCalls().size() << "]\n";
+ unsigned NumCalls = shouldPrintAuxCalls() ?
+ getAuxFunctionCalls().size() : getFunctionCalls().size();
+ O << " [" << getGraphSize() << "+" << NumCalls << "]\n";
} else {
O << " error opening file for writing!\n";
}