diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index a06252dc73d..26620eb85f5 100644 --- a/include/llvm/AbstractTypeUser.h +++ b/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/include/llvm/Value.h b/include/llvm/Value.h index f12eac3ed18..f5381efd0d7 100644 --- a/include/llvm/Value.h +++ b/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; }