Fix logic
authorChris Lattner <sabre@nondot.org>
Sat, 9 Nov 2002 21:40:58 +0000 (21:40 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Nov 2002 21:40:58 +0000 (21:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4664 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/Printer.cpp

index bbd9c2d18b22a61b0678195f84e8d30ea530536b..91ae7cabdf2311d8382dcc516dee541c817f066c 100644 (file)
@@ -184,7 +184,7 @@ static void printCollection(const Collection &C, std::ostream &O,
   DSGraph &GG = C.getGlobalsGraph();
   TotalNumNodes  += GG.getGraphSize();
   TotalCallNodes += GG.getFunctionCalls().size();
-  if (OnlyPrintMain) {
+  if (!OnlyPrintMain) {
     GG.writeGraphToFile(O, Prefix+"GlobalsGraph");
   } else {
     O << "Skipped Writing '" << Prefix << "GlobalsGraph.dot'... ["