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:
c0dd018
)
Remove a useless temporary variable.
author
Rui Ueyama
<ruiu@google.com>
Mon, 24 Apr 2017 23:50:58 +0000
(23:50 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Mon, 24 Apr 2017 23:50:58 +0000
(23:50 +0000)
llvm-svn: 301278
lld/ELF/Symbols.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Symbols.cpp
b/lld/ELF/Symbols.cpp
index
86f3162
..
01caa6d
100644
(file)
--- a/
lld/ELF/Symbols.cpp
+++ b/
lld/ELF/Symbols.cpp
@@
-339,8
+339,7
@@
uint8_t Symbol::computeBinding() const {
return Binding;
if (Visibility != STV_DEFAULT && Visibility != STV_PROTECTED)
return STB_LOCAL;
- const SymbolBody *Body = body();
- if (VersionId == VER_NDX_LOCAL && Body->isInCurrentDSO())
+ if (VersionId == VER_NDX_LOCAL && body()->isInCurrentDSO())
return STB_LOCAL;
if (Config->NoGnuUnique && Binding == STB_GNU_UNIQUE)
return STB_GLOBAL;