[llvm] r198438 - Make the llvm mangler depend only on DataLayout.
Aaron Ballman
aaron at aaronballman.com
Mon Jan 6 11:00:44 PST 2014
On Mon, Jan 6, 2014 at 1:50 PM, Rafael EspĂndola
<rafael.espindola at gmail.com> wrote:
>>> +``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?
I don't have a strong opinion one way or the other, but David or Reid
may have more insights on the topic.
~Aaron
More information about the llvm-commits
mailing list