forked from OSchip/llvm-project
Mark external globals incomplete in the BU Globals graph, fixing
Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll llvm-svn: 20773
This commit is contained in:
parent
537dcf017c
commit
ca174306f0
|
@ -82,6 +82,9 @@ bool BUDataStructures::runOnModule(Module &M) {
|
|||
GlobalsGraph->removeTriviallyDeadNodes();
|
||||
GlobalsGraph->maskIncompleteMarkers();
|
||||
|
||||
// Mark external globals incomplete.
|
||||
GlobalsGraph->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
|
||||
// the information about global pools and GV usage in the program.
|
||||
|
|
Loading…
Reference in New Issue