[all-commits] [llvm/llvm-project] c65088: [ELF] Simplify handling of exportDynamic and canBe...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Dec 8 09:34:11 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c6508809585505ffb88f5f724da04bbc058eabf8
https://github.com/llvm/llvm-project/commit/c6508809585505ffb88f5f724da04bbc058eabf8
Author: Fangrui Song <i at maskray.me>
Date: 2024-12-08 (Sun, 08 Dec 2024)
Changed paths:
M lld/ELF/InputFiles.cpp
M lld/ELF/Relocations.cpp
M lld/ELF/Symbols.cpp
M lld/ELF/Symbols.h
Log Message:
-----------
[ELF] Simplify handling of exportDynamic and canBeOmittedFromSymbolTable
When computing whether a defined symbol is exported, we set
`exportDynamic` in Defined and CommonSymbol's ctor and merge the bit in
symbol resolution. The complexity is for the LTO special case
canBeOmittedFromSymbolTable, which can be simplified by introducing a
new bit.
We might simplify the state by caching includeInDynsym in exportDynamic
in the future.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list