diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-15 13:21:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-15 13:21:42 +0000 |
commit | c18545dc9e5c8d98ea9089af8702a6cf563a8dfd (patch) | |
tree | 799d3124a0cdcfd27ed675e07adba38c3940fa68 /lib/Bytecode | |
parent | 2a72820b43b94a4da0d51c1533b22ded37fc5c86 (diff) |
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
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 4 | ||||
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 8 | ||||
-rw-r--r-- | lib/Bytecode/Reader/ReaderInternals.h | 2 | ||||
-rw-r--r-- | lib/Bytecode/Writer/ConstantWriter.cpp | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index 3865a5e982..6b69b361c1 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -277,7 +277,7 @@ bool BytecodeParser::parseConstPoolValue(const uchar *&Buf, V = ConstPoolPointerNull::get(PT); break; - case 1: { // ConstPoolPointerReference value... + case 1: { // ConstPoolPointerRef value... unsigned Slot; if (read_vbr(Buf, EndBuf, Slot)) return failure(true); BCR_TRACE(4, "CPPR: Type: '" << Ty << "' slot: " << Slot << "\n"); @@ -308,7 +308,7 @@ bool BytecodeParser::parseConstPoolValue(const uchar *&Buf, } } - V = ConstPoolPointerReference::get(GV); + V = ConstPoolPointerRef::get(GV); break; } default: diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 5cb20790b9..80e048a599 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -217,7 +217,7 @@ bool BytecodeParser::ParseSymbolTable(const uchar *&Buf, const uchar *EndBuf, } // DeclareNewGlobalValue - Patch up forward references to global values in the -// form of ConstPoolPointerReferences. +// form of ConstPoolPointerRef. // void BytecodeParser::DeclareNewGlobalValue(GlobalValue *GV, unsigned Slot) { // Check to see if there is a forward reference to this global variable... @@ -229,11 +229,11 @@ void BytecodeParser::DeclareNewGlobalValue(GlobalValue *GV, unsigned Slot) { BCR_TRACE(3, "Mutating CPPR Forward Ref!\n"); // Loop over all of the uses of the GlobalValue. The only thing they are - // allowed to be at this point is ConstPoolPointerReference's. + // allowed to be at this point is ConstPoolPointerRef's. assert(OldGV->use_size() == 1 && "Only one reference should exist!"); while (!OldGV->use_empty()) { - User *U = OldGV->use_back(); // Must be a ConstPoolPointerReference... - ConstPoolPointerReference *CPPR = cast<ConstPoolPointerReference>(U); + User *U = OldGV->use_back(); // Must be a ConstPoolPointerRef... + ConstPoolPointerRef *CPPR = cast<ConstPoolPointerRef>(U); assert(CPPR->getValue() == OldGV && "Something isn't happy"); BCR_TRACE(4, "Mutating Forward Ref!\n"); diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h index a5b01c2438..1d9903dcde 100644 --- a/lib/Bytecode/Reader/ReaderInternals.h +++ b/lib/Bytecode/Reader/ReaderInternals.h @@ -112,7 +112,7 @@ private: bool getTypeSlot(const Type *Ty, unsigned &Slot); // DeclareNewGlobalValue - Patch up forward references to global values in the - // form of ConstPoolPointerReferences. + // form of ConstPoolPointerRefs. // void DeclareNewGlobalValue(GlobalValue *GV, unsigned Slot); diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 8a252dd251..4400290328 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -145,8 +145,8 @@ bool BytecodeWriter::outputConstant(const ConstPoolVal *CPV) { const ConstPoolPointer *CPP = cast<const ConstPoolPointer>(CPV); if (isa<ConstPoolPointerNull>(CPP)) { output_vbr((unsigned)0, Out); - } else if (const ConstPoolPointerReference *CPR = - dyn_cast<ConstPoolPointerReference>(CPP)) { + } else if (const ConstPoolPointerRef *CPR = + dyn_cast<ConstPoolPointerRef>(CPP)) { output_vbr((unsigned)1, Out); int Slot = Table.getValSlot((Value*)CPR->getValue()); assert(Slot != -1 && "Global used but not available!!"); |