[PATCH] D24595: [lib/LTO] Remove now unneded hack for undefined symbols

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 11:20:36 PDT 2016


On Thu, Sep 15, 2016 at 11:16 AM, Teresa Johnson via llvm-commits <
llvm-commits at lists.llvm.org> wrote:


>
> On Thu, Sep 15, 2016 at 10:40 AM, Rafael EspĂ­ndola <
> rafael.espindola at gmail.com> wrote:
>
>>
>>> Not sure I understand the question. We were previously calling
>>> UpdateCompilerUsed before invoking llvm::internalizeModule, presumably to
>>> prevent internalization. Now we simply use the callback to query this
>>> information directly.
>>>
>>>
>> Note that in the case of assembly uses, we don't want to prevent
>> internalization, we want to prevent the internalized symbol from being
>> deleted.
>>
>
> I see, so we need to call that routine to update the llvm.compiler.used
> regardless of internalization. Which means I should put it back in
> lto::thinBackend, not in thinLTOInternalizeModule.
>
> And presumably lto::backend() should get an instance of it too?
>
>
https://reviews.llvm.org/D24617(for the backed part). I thought we needed
this in lld, so it was in my local tree.


-- 
Davide

"There are no solved problems; there are only problems that are more or
less solved" -- Henri Poincare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160915/8027a004/attachment.html>


More information about the llvm-commits mailing list