diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-15 22:47:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-15 22:47:18 +0000 |
commit | f901355379ae09dfa253a306975db8a84a6c5b7c (patch) | |
tree | d6dd7db071be0ddb4de797727486e9477210fc80 | |
parent | 21a79edb2739d819b05ee534c9981f3bedacee95 (diff) | |
download | bcm5719-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
-rw-r--r-- | llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp | 1 |
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 |