aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-23 18:33:11 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-23 18:33:11 +0000
commit0a366c294429d8e779b3411eb933dcecdc1e94c3 (patch)
tree13cb2cd3ce953b9f4b73c2a890c194228660ee67
parent889cbeeac4ee9d18829ba16b2f5071c917c27aae (diff)
Merging r155288:
------------------------------------------------------------------------ r155288 | d0k | 2012-04-21 09:05:27 -0700 (Sat, 21 Apr 2012) | 6 lines Remove unused PointerLikeTypeTraits for IndexListEntry. It set NumLowBitAvailable = 3 which may not be true on all platforms. We only ever use 2 bits (the default) so this assumption can be safely removed Should fix PR12612. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155375 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/SlotIndexes.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h
index dfea0ac30d..0457e43e6b 100644
--- a/include/llvm/CodeGen/SlotIndexes.h
+++ b/include/llvm/CodeGen/SlotIndexes.h
@@ -73,19 +73,6 @@ namespace llvm {
void createNode(const IndexListEntry &);
};
- // Specialize PointerLikeTypeTraits for IndexListEntry.
- template <>
- class PointerLikeTypeTraits<IndexListEntry*> {
- public:
- static inline void* getAsVoidPointer(IndexListEntry *p) {
- return p;
- }
- static inline IndexListEntry* getFromVoidPointer(void *p) {
- return static_cast<IndexListEntry*>(p);
- }
- enum { NumLowBitsAvailable = 3 };
- };
-
/// SlotIndex - An opaque wrapper around machine indexes.
class SlotIndex {
friend class SlotIndexes;