aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-07-21 22:41:25 +0000
committerDevang Patel <dpatel@apple.com>2010-07-21 22:41:25 +0000
commiteaf5ee9ba8d46aba90b4e824c04e8ed8affb1bd4 (patch)
tree1f5be382809a405974c27c031cccd694368d1d38 /lib/CodeGen/CGDebugInfo.cpp
parentd27d3fc2f1c02e77f43e1af43ed5386474e3d56e (diff)
ObjCId is special "struct objc_object". Make this explicit in debug info.
This is tested by objc-rbreak.exp in gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 83eaf76e37..fdc8a35d9d 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -242,6 +242,12 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT,
default:
case BuiltinType::Void:
return llvm::DIType();
+ case BuiltinType::ObjCId:
+ // id is struct objc_object *.
+ return DebugFactory.CreateCompositeType(llvm::dwarf::DW_TAG_structure_type,
+ Unit, "objc_object", Unit, 0, 0, 0, 0,
+ llvm::DIType::FlagFwdDecl,
+ llvm::DIType(), llvm::DIArray());
case BuiltinType::UChar:
case BuiltinType::Char_U: Encoding = llvm::dwarf::DW_ATE_unsigned_char; break;
case BuiltinType::Char_S: