commit | f76e754c2e53b616ae89617ddb302cb04776572c | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Nov 09 21:40:58 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Nov 09 21:40:58 2002 +0000 |
tree | ac3d8454c14f7a42799b28086d915451fe58bd10 | |
parent | aa0b468f6d0e4d30d4f31d528d499e4c9a67c4f2 [diff] [blame] |
Fix logic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4664 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp index bbd9c2d..91ae7ca 100644 --- a/lib/Analysis/DataStructure/Printer.cpp +++ b/lib/Analysis/DataStructure/Printer.cpp
@@ -184,7 +184,7 @@ 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'... ["