mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
analyze() now checks to see that we don't analyze the same method twice.
Needs a mechnanism to override this check (e.g., after a transformation). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
402ace79fc
commit
8b5f6cc0a4
@ -114,6 +114,10 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
|
||||
// performs live var anal for a method
|
||||
void MethodLiveVarInfo::analyze()
|
||||
{
|
||||
// Don't analyze the same method twice!
|
||||
// Later, we need to add change notification here.
|
||||
if (HasAnalyzed)
|
||||
return;
|
||||
|
||||
if( DEBUG_LV) cout << "Analysing live variables ..." << endl;
|
||||
|
||||
|
@ -114,6 +114,10 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
|
||||
// performs live var anal for a method
|
||||
void MethodLiveVarInfo::analyze()
|
||||
{
|
||||
// Don't analyze the same method twice!
|
||||
// Later, we need to add change notification here.
|
||||
if (HasAnalyzed)
|
||||
return;
|
||||
|
||||
if( DEBUG_LV) cout << "Analysing live variables ..." << endl;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user