aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-09 21:40:58 +0000
committerChris Lattner <sabre@nondot.org>2002-11-09 21:40:58 +0000
commitf76e754c2e53b616ae89617ddb302cb04776572c (patch)
treeac3d8454c14f7a42799b28086d915451fe58bd10 /lib/Analysis
parentaa0b468f6d0e4d30d4f31d528d499e4c9a67c4f2 (diff)
downloadexternal_llvm-f76e754c2e53b616ae89617ddb302cb04776572c.zip
external_llvm-f76e754c2e53b616ae89617ddb302cb04776572c.tar.gz
external_llvm-f76e754c2e53b616ae89617ddb302cb04776572c.tar.bz2
Fix logic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DataStructure/Printer.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ 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'... ["