]> granicus.if.org Git - clang/commitdiff
Enable Objective-C interface debug info.
authorDevang Patel <dpatel@apple.com>
Mon, 2 Mar 2009 17:58:28 +0000 (17:58 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 2 Mar 2009 17:58:28 +0000 (17:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65850 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 101dae05926823bd501b4207f9cb31eb8422097b..63ba0dfd39b50a4852e4bb48e287aeac558e50fb 100644 (file)
@@ -493,7 +493,6 @@ llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty,
   case Type::Vector:
   case Type::ExtVector:
   case Type::ExtQual:
-  case Type::ObjCInterface:
   case Type::ObjCQualifiedInterface:
   case Type::ObjCQualifiedId:
   case Type::FixedWidthInt:
@@ -504,6 +503,8 @@ llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty,
     // Unsupported types
     return llvm::DIType();
 
+  case Type::ObjCInterface: 
+    Slot = CreateType(cast<ObjCInterfaceType>(Ty), Unit); break;
   case Type::Builtin: Slot = CreateType(cast<BuiltinType>(Ty), Unit); break;
   case Type::Pointer: Slot = CreateType(cast<PointerType>(Ty), Unit); break;
   case Type::Typedef: Slot = CreateType(cast<TypedefType>(Ty), Unit); break;