]> granicus.if.org Git - clang/commitdiff
move isPodLike<clang::QualType> out to Type.h. We don't
authorChris Lattner <sabre@nondot.org>
Tue, 15 Dec 2009 07:30:12 +0000 (07:30 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Dec 2009 07:30:12 +0000 (07:30 +0000)
want some clients of QualType to think it's a pod and some to
not know it is.

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

include/clang/AST/Type.h
include/clang/AST/TypeOrdering.h

index 7c98403b6f5b2efc5f39788f0ecb713688c75c1e..d22a646ece5bb453d7ed321097dc34e768d833aa 100644 (file)
@@ -35,7 +35,9 @@ namespace clang {
     TypeAlignmentInBits = 3,
     TypeAlignment = 1 << TypeAlignmentInBits
   };
-  class Type; class ExtQuals;
+  class Type;
+  class ExtQuals;
+  class QualType;
 }
 
 namespace llvm {
@@ -59,6 +61,9 @@ namespace llvm {
     }
     enum { NumLowBitsAvailable = clang::TypeAlignmentInBits };
   };
+
+  template <>
+  struct isPodLike<clang::QualType> { static const bool value = true; };
 }
 
 namespace clang {
index d97e5b04a24361459eca9c0cdd6b5750e76b2ec6..1a050d29c8602fef1a270d69f01e63c80b3863e0 100644 (file)
@@ -51,10 +51,6 @@ namespace llvm {
       return LHS == RHS;
     }
   };
-
-  // FIXME: Move to Type.h
-  template <>
-  struct isPodLike<clang::QualType> { static const bool value = true; };
 }
 
 #endif