summaryrefslogtreecommitdiff
path: root/lld/ELF/InputFiles.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-12-08 17:17:51 -0800
committerFangrui Song <i@maskray.me>2024-12-08 17:50:16 -0800
commit18538e213498281653fca5baefa2dec4ae51bf91 (patch)
tree754e609397aba986c429833b3a388efc49c18c0e /lld/ELF/InputFiles.cpp
parenta00eab6a48d70408f8a08654a4bbdd05401ac85e (diff)
Revert "[ELF] Optimize parseSymbolVersion"
This reverts commit 2b129dacdde667137b5012d52f1d96e0ab26c749. parseSymbolVersion can be combined with computeIsPreemptible, making hasVersionSyms unneeded.
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
-rw-r--r--lld/ELF/InputFiles.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 0714c8ce6c16..2084fcfd4d65 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -1215,7 +1215,6 @@ template <class ELFT> void ObjFile<ELFT>::postParse() {
Err(ctx) << "TLS attribute mismatch: " << &sym << "\n>>> in " << sym.file
<< "\n>>> in " << this;
- hasVersionSyms |= sym.hasVersionSuffix;
// Handle non-COMMON defined symbol below. !sym.file allows a symbol
// assignment to redefine a symbol without an error.
if (!sym.isDefined() || secIdx == SHN_UNDEF)
@@ -1591,8 +1590,6 @@ template <class ELFT> void SharedFile::parse() {
s->dsoDefined = true;
if (s->file == this)
s->versionId = idx;
- symbols[firstGlobal + i] = s;
- hasVersionSyms = true;
}
}