[cfe-dev] Strange character around function declared with "asm"

Chris Lattner clattner at apple.com
Thu Dec 2 23:06:01 PST 2010


>>>>> Apparently clang is mangling it this way on purpose as far as I can
>>>>> tell... I'm not really sure why though.
>>>> 
>>>> The gnu "asm renaming" extension says that USER_LABEL_PREFIX is not prefixed onto the symbol name.  The \1 prefix on the LLVM name tells the backend (through the 'Mangler' class) not to add it.
>>> 
>>> Interesting. llvm-gcc bug then?
>> 
>> What's the bug?
> 
> There's no \01 prefix in the llvm-gcc version of the module.

On linux or darwin?  IIRC, on linux there is no USER_LABEL_PREFIX so it doesn't matter if there is a \1 or not.

-Chris



More information about the cfe-dev mailing list