[llvm-commits] [llvm] r129040 - /llvm/trunk/lib/VMCore/IRBuilder.cpp

Duncan Sands baldrick at free.fr
Fri Apr 8 01:54:49 PDT 2011


Hi Nick,

>>> Set unnamed_addr on strings created through the IRBuilder.
>>
>> why is this correct? Aren't you inserting C semantics into the IRBuilder?
>
> Why is it wrong?

because it supposes that the language being compiled allows two strings with the
same contents to be merged.  I'm actually fine with this change as long as it is
documented.  Shall I add an appropriate blurb to IRBuilder.h or would you rather
do it?

Ciao, Duncan.

  If this is breaking any users, feel free to revert it. The
> problem is that it's hard for the caller to go in after the fact and add in the
> unnamed_addr (it's just gone a 'string pointer').
>
> If you want, we could add a flag I guess, I just thought that all production
> users of the API would actually want this behaviour, so why bother with a flag?



More information about the llvm-commits mailing list