From: Chris Lattner Date: Tue, 15 Dec 2009 07:30:12 +0000 (+0000) Subject: move isPodLike out to Type.h. We don't X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aed1df80bf64228e1429c1edc408397f9174847c;p=clang move isPodLike out to Type.h. We don't 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 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 7c98403b6f..d22a646ece 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -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 { static const bool value = true; }; } namespace clang { diff --git a/include/clang/AST/TypeOrdering.h b/include/clang/AST/TypeOrdering.h index d97e5b04a2..1a050d29c8 100644 --- a/include/clang/AST/TypeOrdering.h +++ b/include/clang/AST/TypeOrdering.h @@ -51,10 +51,6 @@ namespace llvm { return LHS == RHS; } }; - - // FIXME: Move to Type.h - template <> - struct isPodLike { static const bool value = true; }; } #endif