[lld] [lld-macho][NFC] Refactor insertions into inputSections (PR #85692)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 11:19:08 PDT 2024
================
@@ -38,6 +38,43 @@ static_assert(sizeof(void *) != 8 ||
std::vector<ConcatInputSection *> macho::inputSections;
+void lld::macho::addInputSection(InputSection *inputSection) {
+ // Used across function calls to impose section ordering
+ static uint64_t inputOrder = 0;
----------------
alx32 wrote:
How about defining it next to `inputSections` and resetting it in `cleanupCallback` along with `inputSections` ?
https://github.com/llvm/llvm-project/pull/85692
More information about the llvm-commits
mailing list