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:
5d11e7f
)
[ELF] Delete two unneeded `referenced = true` after D65584
author
Fangrui Song
<maskray@google.com>
Sat, 29 Feb 2020 05:26:36 +0000
(21:26 -0800)
committer
Fangrui Song
<maskray@google.com>
Sat, 29 Feb 2020 05:59:08 +0000
(21:59 -0800)
lld/ELF/Symbols.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Symbols.cpp
b/lld/ELF/Symbols.cpp
index
f5d5ca1
..
cb7ee88
100644
(file)
--- a/
lld/ELF/Symbols.cpp
+++ b/
lld/ELF/Symbols.cpp
@@
-514,7
+514,6
@@
void Symbol::resolveUndefined(const Undefined &other) {
// reference is weak.
if (other.binding != STB_WEAK || !referenced)
binding = other.binding;
- referenced = true;
}
}
@@
-687,7
+686,6
@@
void Symbol::resolveShared(const SharedSymbol &other) {
uint8_t bind = binding;
replace(other);
binding = bind;
- referenced = true;
}
}