[PATCH] Emit the DIType for ObjC 'id<protocol>' as 'id' rather than objc_object* (fixes rdar://problem/12601916)

Adrian Prantl aprantl at apple.com
Wed Feb 20 15:20:52 PST 2013


Hi CFEes,

please review the following patch:

Emit the DIType for ObjC 'id<protocol>' as 'id' rather than objc_object* 
Fix for rdar://problem/12601916.

The frontend treats 'id' as a typedef to an ObjCObjectType, 
whereas 'id<protocol>' is treated as an ObjCPointerType. For the
debug info, we want to emit 'id' in both cases. 

cheers,
Adrian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: id-protocol-as-id.patch
Type: application/octet-stream
Size: 3821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130220/50836842/attachment.obj>


More information about the cfe-commits mailing list