aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-05-06 22:52:30 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-05-06 22:52:30 +0000
commitdd0dfe60781752661c3d39907989121bc7c3d254 (patch)
tree6f53052db2b8e151c76c8138252208af4e6dd6e5 /include/llvm/Value.h
parentd7cd491eb424be7fe96dbad38d99221b7506482a (diff)
downloadexternal_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.h5
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