aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/AbstractTypeUser.h4
-rw-r--r--include/llvm/Value.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h
index a06252dc73..26620eb85f 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 f12eac3ed1..f5381efd0d 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; }