mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
Add globals graphs to all three passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -409,6 +409,16 @@ void GraphBuilder::visitCastInst(CastInst &CI) {
|
||||
// LocalDataStructures Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
bool LocalDataStructures::run(Module &M) {
|
||||
GlobalsGraph = new DSGraph();
|
||||
|
||||
// Calculate all of the graphs...
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
if (!I->isExternal())
|
||||
DSInfo.insert(std::make_pair(I, new DSGraph(*I, GlobalsGraph)));
|
||||
return false;
|
||||
}
|
||||
|
||||
// releaseMemory - If the pass pipeline is done with this pass, we can release
|
||||
// our memory... here...
|
||||
//
|
||||
@@ -423,13 +433,3 @@ void LocalDataStructures::releaseMemory() {
|
||||
delete GlobalsGraph;
|
||||
GlobalsGraph = 0;
|
||||
}
|
||||
|
||||
bool LocalDataStructures::run(Module &M) {
|
||||
GlobalsGraph = new DSGraph();
|
||||
|
||||
// Calculate all of the graphs...
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
if (!I->isExternal())
|
||||
DSInfo.insert(std::make_pair(I, new DSGraph(*I, GlobalsGraph)));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user