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

Rafael Avila de Espindola rafael.espindola at gmail.com
Fri Feb 11 11:59:54 PST 2011


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: refactor.patch
Type: text/x-patch
Size: 22547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110211/6418fa49/attachment.bin>


More information about the llvm-commits mailing list