summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-15 22:47:18 +0000
committerChris Lattner <sabre@nondot.org>2005-03-15 22:47:18 +0000
commitf901355379ae09dfa253a306975db8a84a6c5b7c (patch)
treed6dd7db071be0ddb4de797727486e9477210fc80 /llvm
parent21a79edb2739d819b05ee534c9981f3bedacee95 (diff)
downloadbcm5719-llvm-f901355379ae09dfa253a306975db8a84a6c5b7c.tar.gz
bcm5719-llvm-f901355379ae09dfa253a306975db8a84a6c5b7c.zip
make sure to mark nodes in the globals graph incomplete after computing it
so that external globals (and whatever they point to) are marked incomplete. llvm-svn: 20628
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp b/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp
index e895ef3c135..ef78d66f7a5 100644
--- a/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp
+++ b/llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp
@@ -102,6 +102,7 @@ bool EquivClassGraphs::runOnModule(Module &M) {
DEBUG(CheckAllGraphs(&M, *this));
getGlobalsGraph().removeTriviallyDeadNodes();
+ getGlobalsGraph().markIncompleteNodes(DSGraph::IgnoreGlobals);
// Merge the globals variables (not the calls) from the globals graph back
// into the main function's graph so that the main function contains all of
OpenPOWER on IntegriCloud