diff options
| author | John McCall <rjmccall@apple.com> | 2010-03-01 23:49:17 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-03-01 23:49:17 +0000 |
| commit | ad5e73887052193afda72db8efcb812bd083a4a8 (patch) | |
| tree | 0307e8bbef42aeb29c135aa0bc729cd4678c5926 /lib/CodeGen/CodeGenTypes.cpp | |
| parent | 72952fc11f80c975492a2a1e0f6e3601c5252e0a (diff) | |
| download | clang-ad5e73887052193afda72db8efcb812bd083a4a8.tar.gz clang-ad5e73887052193afda72db8efcb812bd083a4a8.tar.bz2 clang-ad5e73887052193afda72db8efcb812bd083a4a8.tar.xz | |
Split out types that are non-canonical unless dependent as their own
category. Use this in a few places to eliminate unnecessary TST cases and
do some future-proofing. Provide terrible manglings for typeof. Mangle
decltype with some hope of accuracy.
Our manglings for some of the cases covered in the testcase are different
from gcc's, which I've raised as an issue with the ABI list.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index f30e03c8c9..4feca4dd7d 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -190,6 +190,7 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { #define ABSTRACT_TYPE(Class, Base) #define NON_CANONICAL_TYPE(Class, Base) case Type::Class: #define DEPENDENT_TYPE(Class, Base) case Type::Class: +#define NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Class, Base) case Type::Class: #include "clang/AST/TypeNodes.def" assert(false && "Non-canonical or dependent types aren't possible."); break; @@ -390,9 +391,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { NULL); return PtrDiffTy; } - - case Type::TemplateSpecialization: - assert(false && "Dependent types can't get here"); } // FIXME: implement. |
