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

Nick Kledzik kledzik at apple.com
Wed Mar 26 17:00:49 PDT 2014


On Mar 6, 2014, at 5:28 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> 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
> <t.patch>

LGTM. 

-Nick





More information about the cfe-commits mailing list