Add a simple clear() method

llvm-svn: 24543
This commit is contained in:
Chris Lattner 2005-11-30 19:31:23 +00:00
parent 11695c0537
commit fb619ef95c
1 changed files with 5 additions and 0 deletions

View File

@ -291,6 +291,11 @@ public:
bool remove(Instruction *I); bool remove(Instruction *I);
void remove(AliasSet &AS); void remove(AliasSet &AS);
void clear() {
PointerMap.clear();
AliasSets.clear();
}
/// getAliasSets - Return the alias sets that are active. /// getAliasSets - Return the alias sets that are active.
/// ///
const ilist<AliasSet> &getAliasSets() const { return AliasSets; } const ilist<AliasSet> &getAliasSets() const { return AliasSets; }