[PATCH] D102662: [lld/mac] Correctly set nextdefsym

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 17 20:12:21 PDT 2021


int3 added inline comments.


================
Comment at: lld/MachO/SyntheticSections.cpp:569-575
+static bool shouldExportExternalSymbol(const Defined *defined) {
   if (defined->privateExtern) {
     assert(defined->isExternal() && "invalid input file");
     return false;
   }
   return true;
 }
----------------
int3 wrote:
> can we just inline this into a simple check against `defined->privateExtern`? The assert doesn't seem very useful (we already check it once during `InputFile::parseSymbols`)
(perhaps that change would make more sense as part of D102661)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102662/new/

https://reviews.llvm.org/D102662



More information about the llvm-commits mailing list