mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
add a const version of stripPointerCasts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25df20f169
commit
0ad4d9be03
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user