summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SlotIndexes.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-21 16:05:27 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-21 16:05:27 +0000
commit0b5ad0b9d902620b81268add3f554d73a6d92fc1 (patch)
tree68c3e8dd86726e479f0e5dda245675755173e353 /include/llvm/CodeGen/SlotIndexes.h
parent8959393533bfbdcbbfe3c5f336729394896100ce (diff)
downloadllvm-0b5ad0b9d902620b81268add3f554d73a6d92fc1.tar.gz
llvm-0b5ad0b9d902620b81268add3f554d73a6d92fc1.tar.bz2
llvm-0b5ad0b9d902620b81268add3f554d73a6d92fc1.tar.xz
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/trunk@155288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SlotIndexes.h')
-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;