diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-15 07:30:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-15 07:30:12 +0000 |
commit | aed1df80bf64228e1429c1edc408397f9174847c (patch) | |
tree | bd981db0979e8e85860319b6256f3026a1c6ee9e | |
parent | 06159e878569e5f39bf0e8f11b84ac3ad0970597 (diff) |
move isPodLike<clang::QualType> 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
-rw-r--r-- | include/clang/AST/Type.h | 7 | ||||
-rw-r--r-- | include/clang/AST/TypeOrdering.h | 4 |
2 files changed, 6 insertions, 5 deletions
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<clang::QualType> { 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<clang::QualType> { static const bool value = true; }; } #endif |