diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-16 06:43:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-16 06:43:06 +0000 |
commit | 0ad4d9be0310b79e47561abeef39daf322d06760 (patch) | |
tree | 7dafdff65d76a956f37c9b7b2a142909367e0ecb | |
parent | 25df20f169eb90d2e5f9cff3018a4d935ee5d796 (diff) | |
download | external_llvm-0ad4d9be0310b79e47561abeef39daf322d06760.tar.gz external_llvm-0ad4d9be0310b79e47561abeef39daf322d06760.tar.bz2 external_llvm-0ad4d9be0310b79e47561abeef39daf322d06760.zip |
add a const version of stripPointerCasts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52305 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Value.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 26d2d1df4c..6d4d7cc74a 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -226,6 +226,9 @@ public: /// casts from the specified value, returning the original uncasted value. /// Note that the returned value is guaranteed to have pointer type. Value *stripPointerCasts(); + const Value *stripPointerCasts() const { + return const_cast<Value*>(this)->stripPointerCasts(); + } }; inline std::ostream &operator<<(std::ostream &OS, const Value &V) { |