aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-04 04:45:42 +0000
committerChris Lattner <sabre@nondot.org>2004-08-04 04:45:42 +0000
commitb6197611d54de7f0ba50b185aa4fe6eea9ceb8ff (patch)
tree66c8aa97c5239f84413c921883b917fe223fd0b8 /include
parent7c136c3f8b7af841794f30eaaa4822b65f1eb4f7 (diff)
downloadexternal_llvm-b6197611d54de7f0ba50b185aa4fe6eea9ceb8ff.zip
external_llvm-b6197611d54de7f0ba50b185aa4fe6eea9ceb8ff.tar.gz
external_llvm-b6197611d54de7f0ba50b185aa4fe6eea9ceb8ff.tar.bz2
New methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 a06252d..26620eb 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 f12eac3..f5381ef 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; }