Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ELF] Remove redundant isDefined() in Symbol::computeBinding() and de…
…lete 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
- Loading branch information