[patch] Clang producing a L symbol in __DATA,__data

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Mar 6 17:28:05 PST 2014


My understanding is that __DATA,__data is a section that is atomized
by the linker and cannot have L symbols.

A simple testcase is

@protocol P
-(void) im0;
@end
@interface A<P>
@end
@implementation A
@end

where clang currently prints

        .section        __DATA,__data
...
L_OBJC_PROTOCOLEXT_P:

With the attached patch we print l_OBJC_PROTOCOLEXT_P.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 1538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140306/187b1c0e/attachment.bin>


More information about the cfe-commits mailing list