improve the APIs for creating struct and function types with no arguments/elements
[oota-llvm.git] / include / llvm / Support / PointerLikeTypeTraits.h
index 226dacf36118bf69b0ce185e1a2be9c902eee3b6..b0edd3bd09f99d8049cf27b9d21a5d8f82366c85 100644 (file)
@@ -44,7 +44,7 @@ public:
   ///
   /// All clients should use assertions to do a run-time check to ensure that
   /// this is actually true.
-  enum { NumLowBitsAvailable = 3 };
+  enum { NumLowBitsAvailable = 2 };
 };
   
 // Provide PointerLikeTypeTraits for const pointers.
@@ -55,23 +55,9 @@ public:
   static inline const T *getFromVoidPointer(const void *P) {
     return static_cast<const T*>(P);
   }
-  enum { NumLowBitsAvailable = 3 };
-};
-
-// Pointers to pointers are only 4-byte aligned on 32-bit systems.
-template<typename T>
-class PointerLikeTypeTraits<T**> {
-public:
-  static inline void *getAsVoidPointer(T** P) { return P; }
-  static inline T **getFromVoidPointer(void *P) {
-    return static_cast<T**>(P);
-  }
   enum { NumLowBitsAvailable = 2 };
 };
-  
-  
-  
-  
+
 // Provide PointerLikeTypeTraits for uintptr_t.
 template<>
 class PointerLikeTypeTraits<uintptr_t> {