[llvm-commits] [llvm] r155288 - /llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
Benjamin Kramer
benny.kra at googlemail.com
Sat Apr 21 09:05:27 PDT 2012
Author: d0k
Date: Sat Apr 21 11:05:27 2012
New Revision: 155288
URL: http://llvm.org/viewvc/llvm-project?rev=155288&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=155288&r1=155287&r2=155288&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Sat Apr 21 11:05:27 2012
@@ -73,19 +73,6 @@
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;
More information about the llvm-commits
mailing list