[llvm] r240405 - Simplify the Mangler interface now that DataLayout is mandatory.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jul 13 13:58:55 PDT 2015


On 12 July 2015 at 17:47, Josh Klontz <josh.klontz at gmail.com> wrote:
> Rafael,
>
> FWIW this commit appears to change the name mangling behavior for a Module
> with the default DataLayout, by removing the leading underscore in the
> symbol name, when constructing an object file through
> TargetMachine::addPassesToEmitFile.
>
> I noticed this because this commit exposed a bug in my own code where I
> hadn't explicitly set the DataLayout. Just wanted to give a heads up in case
> this wasn't intended!

It depends on what Datalayout you were passing to the Mangler constructor, no?

Cheers,
Rafael



More information about the llvm-commits mailing list