[llvm-commits] [patch] Refactoring of the llvm mangler

Rafael Avila de Espindola rafael.espindola at gmail.com
Thu Feb 17 08:45:04 PST 2011


Ping.

The fix for PR9177 ended up being a hack where clang knows some of the 
asm names. A simpler mangler could make it more general (and LTO faster).

On 11-02-11 02:59 PM, Rafael Avila de Espindola wrote:
> My first idea for fixing PR9177 involved having clang know all about
> assembly names. Anton pointed me at how llvm-gcc does it and I think a
> similar hack might be sufficient.
>
> In any case, I wrote a refactoring patch for the llvm mangler that might
> be a good thing even if it is not needed for PR9177.
>
> The patch changes the mangler to use streams and explicitly separates
> the add prefix, mangle the name proper and add suffix steps. This makes
> it easier to identify (and maybe drop) some of its strange features.
>
> It also fixes the "FIXME: This logic seems unlikely to be right." :-)

Cheers,
Rafael



More information about the llvm-commits mailing list