[ELF] - Replaced one more hardcode with named constant. NFC.
llvm-svn: 272130
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index bba6b96..f14195a 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -1444,8 +1444,7 @@
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;