diff options
author | Fangrui Song <maskray@google.com> | 2019-08-11 17:03:00 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-08-11 17:03:00 +0000 |
commit | cfdd4589f144448381212922c0def4374926d70c (patch) | |
tree | 23d82adee4786eec83423d251a498c3bf08a71d2 /clang/lib/Format/Format.cpp | |
parent | 635eda8bb0fde5eae101f98586146125dbbf550c (diff) | |
download | bcm5719-llvm-cfdd4589f144448381212922c0def4374926d70c.tar.gz bcm5719-llvm-cfdd4589f144448381212922c0def4374926d70c.zip |
[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
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions