summaryrefslogtreecommitdiffstats
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
commitd185d2ce9dfd0857228264807f12ad35788aa635 (patch)
tree548d997c1208b4ba61155aa7fd8b1b3e77ec91a3
parent4b1be35569e5b534a30d48c1975b9ffe041e7aec (diff)
downloadbcm5719-llvm-d185d2ce9dfd0857228264807f12ad35788aa635.tar.gz
bcm5719-llvm-d185d2ce9dfd0857228264807f12ad35788aa635.zip
Fix logic
llvm-svn: 4664
-rw-r--r--llvm/lib/Analysis/DataStructure/Printer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Printer.cpp b/llvm/lib/Analysis/DataStructure/Printer.cpp
index bbd9c2d18b2..91ae7cabdf2 100644
--- a/llvm/lib/Analysis/DataStructure/Printer.cpp
+++ b/llvm/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'... ["
OpenPOWER on IntegriCloud