diff options
author | John McCall <rjmccall@apple.com> | 2011-10-18 21:02:43 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-10-18 21:02:43 +0000 |
commit | e314e27c58b1111e38a688fa8d203b0149189710 (patch) | |
tree | 457e9608d1046f338268a563f351f2772eb0fb47 /clang/lib/CodeGen | |
parent | 0bf8a492fd75bed43728e9447e74fa4d3a9dac25 (diff) | |
download | bcm5719-llvm-e314e27c58b1111e38a688fa8d203b0149189710.tar.gz bcm5719-llvm-e314e27c58b1111e38a688fa8d203b0149189710.zip |
Macro metaprogramming for builtin types.
llvm-svn: 142420
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index b894326bd88..d4b566bb20f 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -321,16 +321,12 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { unsigned Encoding = 0; const char *BTName = NULL; switch (BT->getKind()) { +#define BUILTIN_TYPE(Id, SingletonId) +#define PLACEHOLDER_TYPE(Id, SingletonId) \ + case BuiltinType::Id: +#include "clang/AST/BuiltinTypes.def" case BuiltinType::Dependent: - llvm_unreachable("Unexpected builtin type Dependent"); - case BuiltinType::Overload: - llvm_unreachable("Unexpected builtin type Overload"); - case BuiltinType::BoundMember: - llvm_unreachable("Unexpected builtin type BoundMember"); - case BuiltinType::UnknownAny: - llvm_unreachable("Unexpected builtin type UnknownAny"); - case BuiltinType::ARCUnbridgedCast: - llvm_unreachable("Unexpected builtin type ARCUnbridgedCast"); + llvm_unreachable("Unexpected builtin type"); case BuiltinType::NullPtr: return DBuilder. createNullPtrType(BT->getName(CGM.getContext().getLangOptions())); |