summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-16 06:43:06 +0000
committerChris Lattner <sabre@nondot.org>2008-06-16 06:43:06 +0000
commit03bea79b23827459f8b1d1b3d76ad2e8b677ddb3 (patch)
treec883a4f9b3679dec7b8b01ee68b9235a1d4f6da0 /llvm
parentfb46605e47bc8a54887a5ae7fa49a558351f02ee (diff)
downloadbcm5719-llvm-03bea79b23827459f8b1d1b3d76ad2e8b677ddb3.tar.gz
bcm5719-llvm-03bea79b23827459f8b1d1b3d76ad2e8b677ddb3.zip
add a const version of stripPointerCasts
llvm-svn: 52305
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Value.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h
index 26d2d1df4c6..6d4d7cc74ac 100644
--- a/llvm/include/llvm/Value.h
+++ b/llvm/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) {
OpenPOWER on IntegriCloud