[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 10 18:02:01 PST 2002


Changes in directory llvm/lib/Analysis/DataStructure:

Printer.cpp updated: 1.40 -> 1.41

---
Log message:

Print the right call set size


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.40 llvm/lib/Analysis/DataStructure/Printer.cpp:1.41
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.40	Sun Nov 10 00:53:59 2002
+++ llvm/lib/Analysis/DataStructure/Printer.cpp	Sun Nov 10 18:01:02 2002
@@ -155,7 +155,9 @@
   
   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";
   }





More information about the llvm-commits mailing list