From c18545dc9e5c8d98ea9089af8702a6cf563a8dfd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Oct 2001 13:21:42 +0000 Subject: Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get tired typing that much git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@822 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Module.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'lib/VMCore/Module.cpp') diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index fbe8586714..7f5e3e246a 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -23,7 +23,7 @@ template class ValueHolder; // Define the GlobalValueRefMap as a struct that wraps a map so that we don't // have Module.h depend on // -struct GlobalValueRefMap : public map{ +struct GlobalValueRefMap : public map{ }; @@ -62,7 +62,7 @@ void Module::dropAllReferences() { if (GVRefMap) { for (GlobalValueRefMap::iterator I = GVRefMap->begin(), E = GVRefMap->end(); I != E; ++I) { - // Delete the ConstPoolPointerReference node... + // Delete the ConstPoolPointerRef node... I->second->destroyConstant(); } @@ -88,25 +88,24 @@ bool Module::reduceApply(bool (*Func)(const Method*)) const { } // Accessor for the underlying GlobalValRefMap... -ConstPoolPointerReference *Module::getConstPoolPointerReference(GlobalValue *V){ +ConstPoolPointerRef *Module::getConstPoolPointerRef(GlobalValue *V){ // Create ref map lazily on demand... if (GVRefMap == 0) GVRefMap = new GlobalValueRefMap(); GlobalValueRefMap::iterator I = GVRefMap->find(V); if (I != GVRefMap->end()) return I->second; - ConstPoolPointerReference *Ref = new ConstPoolPointerReference(V); + ConstPoolPointerRef *Ref = new ConstPoolPointerRef(V); GVRefMap->insert(make_pair(V, Ref)); return Ref; } -void Module::mutateConstPoolPointerReference(GlobalValue *OldGV, - GlobalValue *NewGV) { +void Module::mutateConstPoolPointerRef(GlobalValue *OldGV, GlobalValue *NewGV) { GlobalValueRefMap::iterator I = GVRefMap->find(OldGV); assert(I != GVRefMap->end() && - "mutateConstPoolPointerReference; OldGV not in table!"); - ConstPoolPointerReference *Ref = I->second; + "mutateConstPoolPointerRef; OldGV not in table!"); + ConstPoolPointerRef *Ref = I->second; // Remove the old entry... GVRefMap->erase(I); -- cgit v1.2.3-18-g5258