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 | b04adddd50dfa4c3fbdad3b15d601402254c1ff5 (patch) | |
tree | 6f53052db2b8e151c76c8138252208af4e6dd6e5 /include | |
parent | f092b64a49023b4fa501da8e169d7c804ffa5614 (diff) | |
download | llvm-b04adddd50dfa4c3fbdad3b15d601402254c1ff5.tar.gz llvm-b04adddd50dfa4c3fbdad3b15d601402254c1ff5.tar.bz2 llvm-b04adddd50dfa4c3fbdad3b15d601402254c1ff5.tar.xz |
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')
-rw-r--r-- | include/llvm/IntrinsicInst.h | 6 | ||||
-rw-r--r-- | include/llvm/Value.h | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h index d3a53168f1..494eaaec4d 100644 --- a/include/llvm/IntrinsicInst.h +++ b/include/llvm/IntrinsicInst.h @@ -38,12 +38,6 @@ namespace llvm { IntrinsicInst(const IntrinsicInst&); // DO NOT IMPLEMENT void operator=(const IntrinsicInst&); // DO NOT IMPLEMENT public: - - /// StripPointerCasts - This static method 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. - static Value *StripPointerCasts(Value *Ptr); - /// getIntrinsicID - Return the intrinsic ID of this intrinsic. /// Intrinsic::ID getIntrinsicID() const { diff --git a/include/llvm/Value.h b/include/llvm/Value.h index c1c728270e..e3e6474959 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 |