add a const version of stripPointerCasts

llvm-svn: 52305
This commit is contained in:
Chris Lattner 2008-06-16 06:43:06 +00:00
parent fb46605e47
commit 03bea79b23
1 changed files with 3 additions and 0 deletions

View File

@ -226,6 +226,9 @@ public:
/// casts from the specified value, returning the original uncasted value. /// casts from the specified value, returning the original uncasted value.
/// Note that the returned value is guaranteed to have pointer type. /// Note that the returned value is guaranteed to have pointer type.
Value *stripPointerCasts(); Value *stripPointerCasts();
const Value *stripPointerCasts() const {
return const_cast<Value*>(this)->stripPointerCasts();
}
}; };
inline std::ostream &operator<<(std::ostream &OS, const Value &V) { inline std::ostream &operator<<(std::ostream &OS, const Value &V) {