diff options
author | Devang Patel <dpatel@apple.com> | 2011-09-12 18:50:21 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-09-12 18:50:21 +0000 |
commit | e7566cf6e194946c2b6540444e99452e3e678349 (patch) | |
tree | e80ba5955d0c0d69c7f45bde269271b179c1b13e /lib | |
parent | 6eef9fb34c75278f2e17149d33c7957437bd9a1a (diff) |
By popular demand, enumerate all builtin types!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 5770764dfa..25a97e4efc 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -289,8 +289,20 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { unsigned Encoding = 0; const char *BTName = NULL; switch (BT->getKind()) { - default: - assert(0 && "Unexpected builtin"); + case BuiltinType::Dependent: + assert(0 && "Unexpected builtin type Dependent"); + return llvm::DIType(); + case BuiltinType::Overload: + assert(0 && "Unexpected builtin type Overload"); + return llvm::DIType(); + case BuiltinType::BoundMember: + assert(0 && "Unexpected builtin type BoundMember"); + return llvm::DIType(); + case BuiltinType::UnknownAny: + assert(0 && "Unexpected builtin type UnknownAny"); + return llvm::DIType(); + case BuiltinType::NullPtr: + assert(0 && "Unexpected builtin type NullPtr"); return llvm::DIType(); case BuiltinType::Void: return llvm::DIType(); |