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
This commit is contained in:
Chris Lattner
2001-10-15 13:21:42 +00:00
parent 2a72820b43
commit c18545dc9e
13 changed files with 51 additions and 55 deletions

View File

@@ -41,10 +41,10 @@ const char* const PRINTF = "printf";
#undef USE_PTRREF
#ifdef USE_PTRREF
static inline ConstPoolPointerReference*
static inline ConstPoolPointerRef*
GetStringRef(Module* module, const char* str)
{
static hash_map<string, ConstPoolPointerReference*> stringRefCache;
static hash_map<string, ConstPoolPointerRef*> stringRefCache;
static Module* lastModule = NULL;
if (lastModule != module)
@@ -53,14 +53,14 @@ GetStringRef(Module* module, const char* str)
lastModule = module;
}
ConstPoolPointerReference* result = stringRefCache[str];
ConstPoolPointerRef* result = stringRefCache[str];
if (result == NULL)
{
ConstPoolArray* charArray = ConstPoolArray::get(str);
GlobalVariable* stringVar =
new GlobalVariable(charArray->getType(),/*isConst*/true,charArray,str);
module->getGlobalList().push_back(stringVar);
result = ConstPoolPointerReference::get(stringVar);
result = ConstPoolPointerRef::get(stringVar);
assert(result && "Failed to create reference to string constant");
stringRefCache[str] = result;
}
@@ -89,7 +89,7 @@ GetStringRef(Module* module, const char* str)
new GlobalVariable(charArray->getType(),/*isConst*/true,charArray);
module->getGlobalList().push_back(stringVar);
result = stringVar;
// result = ConstPoolPointerReference::get(stringVar);
// result = ConstPoolPointerRef::get(stringVar);
assert(result && "Failed to create reference to string constant");
stringRefCache[str] = result;
}