diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-21 22:41:25 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-21 22:41:25 +0000 |
commit | 222f4be834ed7faa2c89ee2d985be282594b1ed1 (patch) | |
tree | 54b5324427cd365dd7a34d099e5001e95b8e7768 | |
parent | 4e6c56765310b3df19a8f486e4ee3de25cd7a1fa (diff) | |
download | bcm5719-llvm-222f4be834ed7faa2c89ee2d985be282594b1ed1.tar.gz bcm5719-llvm-222f4be834ed7faa2c89ee2d985be282594b1ed1.zip |
ObjCId is special "struct objc_object". Make this explicit in debug info.
This is tested by objc-rbreak.exp in gdb testsuite.
llvm-svn: 109050
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 83eaf76e37d..fdc8a35d9d6 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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: |