diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-03 14:53:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-03 14:53:21 +0000 |
commit | ef9c23f2812322ae5c5f3140bfbcf92629d7ff47 (patch) | |
tree | c87db095661379f13a39bf1dee52af9ded6a23a3 /include/llvm/ConstPoolVals.h | |
parent | da257162968820a7fd77a9df44e3f72090a7f13a (diff) | |
download | external_llvm-ef9c23f2812322ae5c5f3140bfbcf92629d7ff47.zip external_llvm-ef9c23f2812322ae5c5f3140bfbcf92629d7ff47.tar.gz external_llvm-ef9c23f2812322ae5c5f3140bfbcf92629d7ff47.tar.bz2 |
* Both Method & GlobalVariable now subclass GlobalValue
* ConstPoolPointerReference now represents a pointer to a GlobalValue
* Methods name references are now explicit pointers to methods
* Rename Value::GlobalVal to Value::GlobalVariableVal to avoid confusion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ConstPoolVals.h')
-rw-r--r-- | include/llvm/ConstPoolVals.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/ConstPoolVals.h b/include/llvm/ConstPoolVals.h index a2cd143..68dd0a3 100644 --- a/include/llvm/ConstPoolVals.h +++ b/include/llvm/ConstPoolVals.h @@ -227,26 +227,26 @@ public: // ConstPoolPointerReference - a constant pointer value that is initialized to -// point to a global value, which is a constant. +// point to a global value, which lies at a constant, fixed address. // class ConstPoolPointerReference : public ConstPoolPointer { ConstPoolPointerReference(const ConstPoolPointerReference &); // DNI! protected: - ConstPoolPointerReference(GlobalVariable *GV); + ConstPoolPointerReference(GlobalValue *GV); ~ConstPoolPointerReference() {} public: - static ConstPoolPointerReference *get(GlobalVariable *GV) { + static ConstPoolPointerReference *get(GlobalValue *GV) { // FIXME: These should all be shared! return new ConstPoolPointerReference(GV); } virtual string getStrValue() const; - const GlobalVariable *getValue() const { - return cast<GlobalVariable>(Operands[0].get()); + const GlobalValue *getValue() const { + return cast<GlobalValue>(Operands[0].get()); } - GlobalVariable *getValue() { - return cast<GlobalVariable>(Operands[0].get()); + GlobalValue *getValue() { + return cast<GlobalValue>(Operands[0].get()); } }; |