From 39006cd3b80eab0c3e2d8b81c50da68198f43f1d Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 31 Mar 2014 21:31:04 +0000 Subject: [PATCH] Remove redundant template specialization that just duplicates the partial specialization that would otherwise be selected. llvm-svn: 205249 --- clang/include/clang/AST/DeclBase.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h index 7e0b73d3c7ad..6c3135847f45 100644 --- a/clang/include/clang/AST/DeclBase.h +++ b/clang/include/clang/AST/DeclBase.h @@ -54,20 +54,6 @@ class TranslationUnitDecl; class UsingDirectiveDecl; } -namespace llvm { -// DeclContext* is only 4-byte aligned on 32-bit systems. -template<> - class PointerLikeTypeTraits { - typedef clang::DeclContext* PT; -public: - static inline void *getAsVoidPointer(PT P) { return P; } - static inline PT getFromVoidPointer(void *P) { - return static_cast(P); - } - enum { NumLowBitsAvailable = 2 }; -}; -} - namespace clang { /// \brief Captures the result of checking the availability of a