* Fix a bug where global incompleteness marking would not mark the global

itself incomplete!
* Allow incompleteness callers to specify they don't want globals to be
  considered sources of incompleteness.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-02-09 18:41:49 +00:00
parent d4aabcb0d0
commit 93d7a212cc

View File

@@ -766,14 +766,11 @@ void DSGraph::markIncompleteNodes(unsigned Flags) {
markIncomplete(AuxFunctionCalls[i]); markIncomplete(AuxFunctionCalls[i]);
// Mark all of the nodes pointed to by global nodes as incomplete... // Mark all global nodes as incomplete...
for (unsigned i = 0, e = Nodes.size(); i != e; ++i) if ((Flags & DSGraph::IgnoreGlobals) == 0)
if (Nodes[i]->NodeType & DSNode::GlobalNode) { for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
DSNode *N = Nodes[i]; if (Nodes[i]->NodeType & DSNode::GlobalNode)
for (unsigned i = 0, e = N->getSize(); i < e; i += DS::PointerSize) markIncompleteNode(Nodes[i]);
if (DSNode *DSN = N->getLink(i).getNode())
markIncompleteNode(DSN);
}
} }
static inline void killIfUselessEdge(DSNodeHandle &Edge) { static inline void killIfUselessEdge(DSNodeHandle &Edge) {