diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-29 00:39:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-29 00:39:30 +0000 |
commit | 8ee1b5e916249d1a64ad8cf99b08a0e160f9d052 (patch) | |
tree | ac2ac279663151c5daa5ec412fe9ed96a22606d8 /include/llvm/ADT/PointerIntPair.h | |
parent | 6a0dcc10778468b1556474aa43d4a86a14ab15d7 (diff) | |
download | llvm-8ee1b5e916249d1a64ad8cf99b08a0e160f9d052.tar.gz llvm-8ee1b5e916249d1a64ad8cf99b08a0e160f9d052.tar.bz2 llvm-8ee1b5e916249d1a64ad8cf99b08a0e160f9d052.tar.xz |
rename PointerLikeTypeInto to PointerLikeTypeTraits, add trait for
# low bits free, and move to its own header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/PointerIntPair.h')
-rw-r--r-- | include/llvm/ADT/PointerIntPair.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h index 92259298ef..7b3283c96d 100644 --- a/include/llvm/ADT/PointerIntPair.h +++ b/include/llvm/ADT/PointerIntPair.h @@ -22,7 +22,7 @@ namespace llvm { template<typename T> struct DenseMapInfo; template<typename> -class PointerLikeTypeInfo; +class PointerLikeTypeTraits; /// PointerIntPair - This class implements a pair of a pointer and small /// integer. It is designed to represent this in the space required by one @@ -97,7 +97,7 @@ struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType> > { // Teach SmallPtrSet that PointerIntPair is "basically a pointer". template<typename PointerTy, unsigned IntBits, typename IntType> -class PointerLikeTypeInfo<PointerIntPair<PointerTy, IntBits, IntType> > { +class PointerLikeTypeTraits<PointerIntPair<PointerTy, IntBits, IntType> > { public: static inline void * getAsVoidPointer(const PointerIntPair<PointerTy, IntBits, IntType> &P) { @@ -107,6 +107,7 @@ public: getFromVoidPointer(void *P) { return PointerIntPair<PointerTy, IntBits, IntType>::getFromOpaqueValue(P); } + static inline unsigned getNumLowBitsAvailable() { return 0; } }; } // end namespace llvm |