[LLVMdev] RFC: Mangling Unnamed Global Values

Bill Wendling isanbard at gmail.com
Mon Nov 24 11:27:18 PST 2008


On Mon, Nov 24, 2008 at 11:14 AM, Devang Patel <dpatel at apple.com> wrote:
>
> On Nov 24, 2008, at 11:07 AM, Chris Lattner wrote:
>
>> On Nov 24, 2008, at 11:01 AM, Bill Wendling wrote:
>>
>>> The symbols I'm interested in already have internal linkage (as you
>>> would expect). But because the mangler is in charge of assigning them
>>> names, they never seem to be decorated with the 'L' in front. . . .
>>
>> If you use SET_DECL_ASSEMBLER_NAME (something like that) you can
>> specify the full name for this stuff, including the L.  This is how
>> other Objc metadata works.
>
> Yup.  see start_var_decl() in objc-act.c and its uses of
> set_user_assembler_name().

I'll check it out. Thanks!

-bw



More information about the llvm-dev mailing list