projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0b7df
)
Use SymbolVersion::Id instead of a hard-coded local variable.
author
Rui Ueyama
<ruiu@google.com>
Sat, 16 Jul 2016 02:00:43 +0000
(
02:00
+0000)
committer
Rui Ueyama
<ruiu@google.com>
Sat, 16 Jul 2016 02:00:43 +0000
(
02:00
+0000)
llvm-svn: 275660
lld/ELF/OutputSections.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/OutputSections.cpp
b/lld/ELF/OutputSections.cpp
index
7c94e84
..
573c7f7
100644
(file)
--- a/
lld/ELF/OutputSections.cpp
+++ b/
lld/ELF/OutputSections.cpp
@@
-1527,9
+1527,8
@@
void VersionDefinitionSection<ELFT>::writeTo(uint8_t *Buf) {
writeDefinition(Verdef, Verdaux, VER_FLG_BASE, 1, getFileDefName(),
FileDefNameOff);
- uint32_t I = 2;
for (Version &V : Config->SymbolVersions)
- writeDefinition(Verdef, Verdaux, 0
/* Flags */, I++
, V.Name, V.NameOff);
+ writeDefinition(Verdef, Verdaux, 0
, V.Id
, V.Name, V.NameOff);
Verdef[-1].vd_next = 0;
}