From 36a129a89b472d5881f16fb36bcb37fe221bf8c0 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205249 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DeclBase.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 7e0b73d3c7..6c3135847f 100644 --- a/include/clang/AST/DeclBase.h +++ b/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 -- 2.40.0