mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-21 16:24:47 +00:00
Mark external globals incomplete in the BU Globals graph, fixing
Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c10375785
commit
9547adef58
@ -82,6 +82,9 @@ bool BUDataStructures::runOnModule(Module &M) {
|
|||||||
GlobalsGraph->removeTriviallyDeadNodes();
|
GlobalsGraph->removeTriviallyDeadNodes();
|
||||||
GlobalsGraph->maskIncompleteMarkers();
|
GlobalsGraph->maskIncompleteMarkers();
|
||||||
|
|
||||||
|
// Mark external globals incomplete.
|
||||||
|
GlobalsGraph->markIncompleteNodes(DSGraph::IgnoreGlobals);
|
||||||
|
|
||||||
// Merge the globals variables (not the calls) from the globals graph back
|
// 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
|
// 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.
|
// the information about global pools and GV usage in the program.
|
||||||
|
Loading…
Reference in New Issue
Block a user