From 4c244225d59f6bbdeb0a00a590c9c37526cddfb8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Aug 2004 04:45:42 +0000 Subject: [PATCH] New methods llvm-svn: 15462 --- llvm/include/llvm/AbstractTypeUser.h | 4 ++++ llvm/include/llvm/Value.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/llvm/include/llvm/AbstractTypeUser.h b/llvm/include/llvm/AbstractTypeUser.h index a06252dc73d1..26620eb85f57 100644 --- a/llvm/include/llvm/AbstractTypeUser.h +++ b/llvm/include/llvm/AbstractTypeUser.h @@ -164,6 +164,10 @@ public: return operator=(H.Ty); } + /// getRawType - This should only be used to implement the vmcore library. + /// + const Type *getRawType() const { return Ty; } + private: void addRef(); void dropRef(); diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h index f12eac3ed186..f5381efd0d75 100644 --- a/llvm/include/llvm/Value.h +++ b/llvm/include/llvm/Value.h @@ -141,6 +141,10 @@ public: return true; // Values are always values. } + /// getRawType - This should only be used to implement the vmcore library. + /// + const Type *getRawType() const { return Ty.getRawType(); } + private: /// FIXME: this is a gross hack, needed by another gross hack. Eliminate! void setValueType(unsigned VT) { SubclassID = VT; }