summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-06-08 11:49:01 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-06-08 11:49:01 +0000
commit56efb34901d7b25ff57eeb09e9c0efe1abf2e5df (patch)
tree12baff5d74f6d28f9fcb4525e4aa405fd73eb959
parentd50a1459e9c4c3c956b525d56ddb0018a56a2bdb (diff)
downloadbcm5719-llvm-56efb34901d7b25ff57eeb09e9c0efe1abf2e5df.tar.gz
bcm5719-llvm-56efb34901d7b25ff57eeb09e9c0efe1abf2e5df.zip
[ELF] - Replaced one more hardcode with named constant. NFC.
llvm-svn: 272130
-rw-r--r--lld/ELF/OutputSections.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index bba6b96d1f7..f14195af0b1 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -1444,8 +1444,7 @@ VersionNeedSection<ELFT>::VersionNeedSection()
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;
OpenPOWER on IntegriCloud