mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Forgot to commit this file.
Add a clear() method to remove all ranges and value numbers for a live interval. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -145,6 +145,16 @@ namespace llvm {
|
|||||||
while (I->end <= Pos) ++I;
|
while (I->end <= Pos) ++I;
|
||||||
return I;
|
return I;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void clear() {
|
||||||
|
while (!valnos.empty()) {
|
||||||
|
VNInfo *VNI = valnos.back();
|
||||||
|
valnos.pop_back();
|
||||||
|
VNI->~VNInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
ranges.clear();
|
||||||
|
}
|
||||||
|
|
||||||
/// isStackSlot - Return true if this is a stack slot interval.
|
/// isStackSlot - Return true if this is a stack slot interval.
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user