From 60525942099d2a9e8e24f150eda491596a8929e7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Nov 2002 00:01:02 +0000 Subject: [PATCH] Print the right call set size git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4688 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/Printer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp index 483d2235350..8b6bdcf6dc1 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"; }