r205249 - Remove redundant template specialization that just duplicates the partial
Richard Smith
richard-llvm at metafoo.co.uk
Mon Mar 31 14:31:05 PDT 2014
Author: rsmith
Date: Mon Mar 31 16:31:04 2014
New Revision: 205249
URL: http://llvm.org/viewvc/llvm-project?rev=205249&view=rev
Log:
Remove redundant template specialization that just duplicates the partial
specialization that would otherwise be selected.
Modified:
cfe/trunk/include/clang/AST/DeclBase.h
Modified: cfe/trunk/include/clang/AST/DeclBase.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclBase.h?rev=205249&r1=205248&r2=205249&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclBase.h (original)
+++ cfe/trunk/include/clang/AST/DeclBase.h Mon Mar 31 16:31:04 2014
@@ -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
More information about the cfe-commits
mailing list