1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Rename a method

llvm-svn: 13676
This commit is contained in:
Chris Lattner 2004-05-23 21:10:58 +00:00
parent f0931ed115
commit 0588bd19d2
2 changed files with 5 additions and 5 deletions

View File

@ -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<AliasSet> &getAliasSets() const { return AliasSets; }

View File

@ -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<Value*, AliasSet::PointerRec>::iterator I = PointerMap.find(PtrVal);
if (I == PointerMap.end()) return; // Noop