]> granicus.if.org Git - clang/commitdiff
Remove redundant template specialization that just duplicates the partial
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 31 Mar 2014 21:31:04 +0000 (21:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 31 Mar 2014 21:31:04 +0000 (21:31 +0000)
specialization that would otherwise be selected.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205249 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index 7e0b73d3c7adff0ef216000de20932974287e609..6c3135847f450c09403e3b3f86d977f91c8bce51 100644 (file)
@@ -54,20 +54,6 @@ class TranslationUnitDecl;
 class UsingDirectiveDecl;
 }
 
-namespace llvm {
-// DeclContext* is only 4-byte aligned on 32-bit systems.
-template<>
-  class PointerLikeTypeTraits<clang::DeclContext*> {
-  typedef clang::DeclContext* PT;
-public:
-  static inline void *getAsVoidPointer(PT P) { return P; }
-  static inline PT getFromVoidPointer(void *P) {
-    return static_cast<PT>(P);
-  }
-  enum { NumLowBitsAvailable = 2 };
-};
-}
-
 namespace clang {
 
   /// \brief Captures the result of checking the availability of a