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

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 18:02:54 PDT 2016


mehdi_amini added inline comments.

================
Comment at: lib/LTO/LTO.cpp:359
@@ -357,3 +358,3 @@
     // what is the "right" behavior here.
     if (Sym.getFlags() & object::BasicSymbolRef::SF_Common) {
       auto &CommonRes = RegularLTO.Commons[Sym.getIRName()];
----------------
Is this ok with  `Sym.getFlags() & object::BasicSymbolRef::SF_Undefined`?
The `continue;` you're removing makes us no longer short-circuiting this code.


https://reviews.llvm.org/D24595





More information about the llvm-commits mailing list