[lld] [LLD][MachO] Option to emit separate cstring sections (PR #158720)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 11:44:24 PDT 2025
================
@@ -239,7 +239,9 @@ void macho::writeMapFile() {
printIsecArrSyms(textOsec->inputs, textOsec->getThunks());
} else if (auto *concatOsec = dyn_cast<ConcatOutputSection>(osec)) {
printIsecArrSyms(concatOsec->inputs);
- } else if (osec == in.cStringSection || osec == in.objcMethnameSection) {
+ } else if (any_of(in.cStringSectionMap,
----------------
ellishg wrote:
Thanks for pointing out the iteration order. Instead I decided to store cstring sections in a map whose order is deterministic and use a map to point to the indices in the vector.
https://github.com/llvm/llvm-project/pull/158720
More information about the llvm-commits
mailing list