forked from OSchip/llvm-project
Forgot to commit this file.
Add a clear() method to remove all ranges and value numbers for a live interval. llvm-svn: 61459
This commit is contained in:
parent
37751bb9d9
commit
4213188c75
|
@ -145,6 +145,16 @@ namespace llvm {
|
|||
while (I->end <= Pos) ++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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue