diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h index c6bdddfffce..4996f5a4cf9 100644 --- a/include/llvm/Analysis/AliasSetTracker.h +++ b/include/llvm/Analysis/AliasSetTracker.h @@ -264,12 +264,12 @@ public: void add(BasicBlock &BB); // Add all instructions in basic block void add(const AliasSetTracker &AST); // Add alias relations from another AST - /// remove method - This method is used to remove a pointer value from the - /// AliasSetTracker entirely. It should be used when an instruction is + /// deleteValue method - This method is used to remove a pointer value from + /// the AliasSetTracker entirely. It should be used when an instruction is /// deleted from the program to update the AST. If you don't use this, you /// would have dangling pointers to deleted instructions. /// - void remove(Value *PtrVal); + void deleteValue(Value *PtrVal); /// getAliasSets - Return the alias sets that are active. const ilist &getAliasSets() const { return AliasSets; } diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index 82b6edec935..342c7a3be8c 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -277,12 +277,12 @@ void AliasSetTracker::add(const AliasSetTracker &AST) { } -// remove method - This method is used to remove a pointer value from the +// deleteValue method - This method is used to remove a pointer value from the // AliasSetTracker entirely. It should be used when an instruction is deleted // from the program to update the AST. If you don't use this, you would have // dangling pointers to deleted instructions. // -void AliasSetTracker::remove(Value *PtrVal) { +void AliasSetTracker::deleteValue(Value *PtrVal) { // First, look up the PointerRec for this pointer... hash_map::iterator I = PointerMap.find(PtrVal); if (I == PointerMap.end()) return; // Noop