[lld-macho][nfc] Remove indirection when looking up common section members
authorJez Ng <jezng@fb.com>
Thu, 7 Apr 2022 18:28:44 +0000 (14:28 -0400)
committerJez Ng <jezng@fb.com>
Thu, 7 Apr 2022 18:28:52 +0000 (14:28 -0400)
commitf004ecf6ec1d12fb6b57fc9033eeec7e892c9151
tree284c793c68a65227db2e558763d758280f1af821
parentfa784f63827d046c1dad5cbdf2bb5eabaf456c75
[lld-macho][nfc] Remove indirection when looking up common section members

{D118797} means that we can now check the name/segname of a given
section directly, instead of having to look those properties up on one
of its subsections. This allows us to simplify our code.

Reviewed By: #lld-macho, oontvoo

Differential Revision: https://reviews.llvm.org/D123275
lld/MachO/Driver.cpp
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h