commit | cfdd4589f144448381212922c0def4374926d70c | [log] [tgz] |
---|---|---|
author | Fangrui Song <[email protected]> | Sun Aug 11 17:03:00 2019 |
committer | Fangrui Song <[email protected]> | Sun Aug 11 17:03:00 2019 |
tree | 23d82adee4786eec83423d251a498c3bf08a71d2 | |
parent | 635eda8bb0fde5eae101f98586146125dbbf550c [diff] |
[ELF] Remove redundant isDefined() in Symbol::computeBinding() and delete one redundant call site After r367869, VER_NDX_LOCAL can only be assigned to Defined and CommonSymbol. CommonSymbol becomes Defined after replaceCommonSymbols(), thus `versionId == VER_NDX_LOCAL` will imply `isDefined()`. In maybeReportUndefined(), computeBinding() is called when the symbol is unknown to be Undefined. computeBinding() != STB_LOCAL will always be true. llvm-svn: 368536