D41113: [LLVMgold] Don't set resolutions for undefined symbols to 'Prevailing'

Evgeny Leviant via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 07:22:46 PST 2017


This change causes following tests to fail:

    LLVM :: LTO/Resolution/X86/common2.ll
    LLVM :: LTO/Resolution/X86/dead-strip-fulllto.ll
    LLVM :: ThinLTO/X86/deadstrip.ll

I'll fix and commit.
________________________________________
От: Teresa Johnson via Phabricator <reviews at reviews.llvm.org>
Отправлено: 15 декабря 2017 г. 17:52
Кому: Evgeny Leviant; rafael.espindola at gmail.com; tejohnson at google.com; joker.eph at gmail.com; peter at pcc.me.uk
Копия: eraman at google.com; llvm-commits at lists.llvm.org; llvm.mail.list at gmail.com; George Rimar; Igor Kudrin
Тема: [PATCH] D41113: [LLVMgold] Don't set resolutions for undefined symbols to 'Prevailing'

tejohnson added inline comments.


================
Comment at: llvm/trunk/lib/LTO/LTO.cpp:420
+    if (Res.Prevailing) {
+      assert((GlobalRes.IRName.empty() || !Sym.getIRName().empty()) &&
+             "Overriding existing resolution with undefined asm symbol");
----------------
I had suggested changing this to simply:

assert(GlobalRes.IRName.empty() && "....

since we should only have one prevailing def. Can you do that?


Repository:
  rL LLVM

https://reviews.llvm.org/D41113





More information about the llvm-commits mailing list