mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
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. llvm-svn: 155288
This commit is contained in:
parent
a5df77be2f
commit
228e16b53c
@ -73,19 +73,6 @@ namespace llvm {
|
|||||||
void createNode(const IndexListEntry &);
|
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.
|
/// SlotIndex - An opaque wrapper around machine indexes.
|
||||||
class SlotIndex {
|
class SlotIndex {
|
||||||
friend class SlotIndexes;
|
friend class SlotIndexes;
|
||||||
|
Loading…
Reference in New Issue
Block a user