[llvm] r198438 - Make the llvm mangler depend only on DataLayout.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jan 6 10:50:56 PST 2014


>> +``m:<mangling>``
>> +   If prerest, specifies that llvm names are mangled in the output. The
>> +   options are
>> +   * ``e``: ELF mangling: Private symbols get a ``.L`` prefix.
>> +   * ``m``: Mips mangling: Private symbols get a ``$`` prefix.
>> +   * ``o``: Mach-O mangling: Private symbols get ``L`` prefix. Other
>> +    symbols get a ``_`` prefix.
>> +   * ``c``:  COFF prefix:  Similar to Mach-O, but stdcall and fastcall
>> +  functions also get a sufiix based on the frame size.
>
>
> Is this truly COFF or COFF/PE?  PE has diverged significantly from COFF, and
> I think it would be nice to indicate that this is PE mangling (unless Im
> mistaken and this is meant to be specifically COFF).  I may be mistaken
> here, but I believe that the stdcall/fastcall mangling is PE specific.

I am not sure. It is the mangling we do 32 bit windows targets (mingw
and cygwin included). Do you think it would be better to give it some
other name? Aaron, any opinion on this?

Cheers,
Rafael



More information about the llvm-commits mailing list