From ef9c23f2812322ae5c5f3140bfbcf92629d7ff47 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 3 Oct 2001 14:53:21 +0000 Subject: * 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 --- include/llvm/ConstPoolVals.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/llvm/ConstPoolVals.h') 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(Operands[0].get()); + const GlobalValue *getValue() const { + return cast(Operands[0].get()); } - GlobalVariable *getValue() { - return cast(Operands[0].get()); + GlobalValue *getValue() { + return cast(Operands[0].get()); } }; -- cgit v1.1