[cfe-commits] r139521 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Devang Patel dpatel at apple.com
Mon Sep 12 11:50:21 PDT 2011


Author: dpatel
Date: Mon Sep 12 13:50:21 2011
New Revision: 139521

URL: http://llvm.org/viewvc/llvm-project?rev=139521&view=rev
Log:
By popular demand, enumerate all builtin types!

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=139521&r1=139520&r2=139521&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Sep 12 13:50:21 2011
@@ -289,8 +289,20 @@
   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();





More information about the cfe-commits mailing list