mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8959393533
commit
0b5ad0b9d9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user