commit | 02415cd93cc2b5b7c836c3be999aeb12e6fae7c5 | [log] [tgz] |
---|---|---|
author | Fangrui Song <maskray@google.com> | Sun Aug 11 17:03:00 2019 +0000 |
committer | Fangrui Song <maskray@google.com> | Sun Aug 11 17:03:00 2019 +0000 |
tree | a9adc700373ab062c5f9b43e074e22365b6025b8 | |
parent | 7f421a2e35e202164c7f25e26bed8aed0c58dff2 [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. git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@368536 91177308-0d34-0410-b5e6-96231b3b80d8
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.