[lld] r272130 - [ELF] - Replaced one more hardcode with named constant. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 04:49:02 PDT 2016
Author: grimar
Date: Wed Jun 8 06:49:01 2016
New Revision: 272130
URL: http://llvm.org/viewvc/llvm-project?rev=272130&view=rev
Log:
[ELF] - Replaced one more hardcode with named constant. NFC.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=272130&r1=272129&r2=272130&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Wed Jun 8 06:49:01 2016
@@ -1444,8 +1444,7 @@ VersionNeedSection<ELFT>::VersionNeedSec
template <class ELFT>
void VersionNeedSection<ELFT>::addSymbol(SharedSymbol<ELFT> *SS) {
if (!SS->Verdef) {
- // The reserved identifier for a non-versioned global symbol.
- SS->VersionId = 1;
+ SS->VersionId = VER_NDX_GLOBAL;
return;
}
SharedFile<ELFT> *F = SS->File;
More information about the llvm-commits
mailing list