[cfe-commits] r109050 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed Jul 21 15:57:09 PDT 2010
BuiltinType::ObjCClass also is "struct objc_class *".
- Fariborz
On Jul 21, 2010, at 3:41 PM, Devang Patel wrote:
> Author: dpatel
> Date: Wed Jul 21 17:41:25 2010
> New Revision: 109050
>
> URL: http://llvm.org/viewvc/llvm-project?rev=109050&view=rev
> Log:
> ObjCId is special "struct objc_object". Make this explicit in debug
> info.
> This is tested by objc-rbreak.exp in gdb testsuite.
>
> 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=109050&r1=109049&r2=109050&view=diff
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Wed Jul 21 17:41:25 2010
> @@ -242,6 +242,12 @@
> 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:
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list