diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-06 22:52:30 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-06 22:52:30 +0000 |
commit | dd0dfe60781752661c3d39907989121bc7c3d254 (patch) | |
tree | 6f53052db2b8e151c76c8138252208af4e6dd6e5 /include/llvm/Value.h | |
parent | d7cd491eb424be7fe96dbad38d99221b7506482a (diff) | |
download | external_llvm-dd0dfe60781752661c3d39907989121bc7c3d254.zip external_llvm-dd0dfe60781752661c3d39907989121bc7c3d254.tar.gz external_llvm-dd0dfe60781752661c3d39907989121bc7c3d254.tar.bz2 |
Make StripPointerCast a common function (should we mak it method of Value instead?)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index c1c7282..e3e6474 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -272,6 +272,11 @@ template <> inline bool isa_impl<GlobalValue, Value>(const Value &Val) { return isa<GlobalVariable>(Val) || isa<Function>(Val) || isa<GlobalAlias>(Val); } +/// StripPointerCasts - This function strips off any unneeded pointer +/// casts from the specified value, returning the original uncasted value. +/// Note that the returned value is guaranteed to have pointer type. +Value *StripPointerCasts(Value *Ptr); + } // End llvm namespace #endif |