[lld-macho][nfc] Refactor MarkLive
authorJez Ng <jezng@fb.com>
Wed, 23 Feb 2022 13:57:54 +0000 (08:57 -0500)
committerJez Ng <jezng@fb.com>
Wed, 23 Feb 2022 13:58:26 +0000 (08:58 -0500)
commite42ad84ba02220f5954c6cbc6fa9f77120ac8c06
treec7f21b6fa076bcd9bc00e0dd14dda54552bcf9fb
parent8386eb23bfe625bc3fe42586b4d47c8eb54c37d7
[lld-macho][nfc] Refactor MarkLive

This mirrors the code structure in `lld/ELF`. It also paves the way for
an upcoming diff where I templatize things.

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D120376
lld/MachO/MarkLive.cpp