[lld] [lld-macho][NFC] Refactor insertions into inputSections (PR #85692)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 11:15:31 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;
----------------
kyulee-com wrote:
It seems this value becomes stale if lld is used as a library. Can we avoid this static variable?
https://github.com/llvm/llvm-project/pull/85692
More information about the llvm-commits
mailing list