[llvm-commits] [llvm] r52305 - /llvm/trunk/include/llvm/Value.h
Chris Lattner
sabre at nondot.org
Sun Jun 15 23:43:06 PDT 2008
Author: lattner
Date: Mon Jun 16 01:43:06 2008
New Revision: 52305
URL: http://llvm.org/viewvc/llvm-project?rev=52305&view=rev
Log:
add a const version of stripPointerCasts
Modified:
llvm/trunk/include/llvm/Value.h
Modified: llvm/trunk/include/llvm/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Value.h?rev=52305&r1=52304&r2=52305&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Value.h (original)
+++ llvm/trunk/include/llvm/Value.h Mon Jun 16 01:43:06 2008
@@ -226,6 +226,9 @@
/// 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) {
More information about the llvm-commits
mailing list