[lld] [ELF] Merge exportDynamic into versionId (PR #71272)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 4 10:10:31 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff b0d5b4d252357efbe5582ca635dd22c433ec02dc e1d5b9fc19bcce6d9d2f01510983583945647928 -- lld/ELF/Config.h lld/ELF/Driver.cpp lld/ELF/InputFiles.cpp lld/ELF/LTO.cpp lld/ELF/Relocations.cpp lld/ELF/SymbolTable.cpp lld/ELF/Symbols.cpp lld/ELF/Symbols.h lld/ELF/SyntheticSections.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 70598d7221cc..11c39743883f 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -3129,7 +3129,7 @@ void VersionTableSection::writeTo(uint8_t *buf) {
// converted to Undefined and have VER_NDX_GLOBAL version here.
assert(!s.sym->isLazy());
write16(buf, s.sym->versionId == nonExported ? VER_NDX_GLOBAL
- : s.sym->versionId);
+ : s.sym->versionId);
buf += 2;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/71272
More information about the llvm-commits
mailing list