[PATCH] D113235: [lld-macho] Replace LC_LINKER_OPTION parsing

Keith Smiley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 4 21:38:46 PDT 2021


keith added inline comments.


================
Comment at: lld/MachO/Driver.cpp:419
                  /*isReexport=*/false, /*isExplicit=*/false, forceLoadArchive);
       break;
     }
----------------
int3 wrote:
> wait a minute... shouldn't this be `continue`, or the next line changed to `else if`?
> 
> I'd thought we would have tests to catch this :/
Since this parses a single option at a time shouldn't breaking be ok? I guess I'm not sure if the format intends to support `-lfoo -lbar` in a single LC_LINKER_OPTION or not?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113235



More information about the llvm-commits mailing list