Print the right call set size
authorChris Lattner <sabre@nondot.org>
Mon, 11 Nov 2002 00:01:02 +0000 (00:01 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Nov 2002 00:01:02 +0000 (00:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4688 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/Printer.cpp

index 483d2235350594df5725746467d0f794b23adb51..8b6bdcf6dc1b68084f03b73163e338601bb67690 100644 (file)
@@ -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";
   }