diff options
| author | George Rimar <grimar@accesssoftek.com> | 2017-09-13 07:54:47 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2017-09-13 07:54:47 +0000 |
| commit | cb888a620d61da9b12639d24779a7c62b03f06f1 (patch) | |
| tree | 45a7ca5db39ad35f5e182b449c43029dd0d686ea /llvm/lib/Object/Error.cpp | |
| parent | 2b6bfda5610d97755b5de4c427e1e4993351335f (diff) | |
| download | bcm5719-llvm-cb888a620d61da9b12639d24779a7c62b03f06f1.tar.gz bcm5719-llvm-cb888a620d61da9b12639d24779a7c62b03f06f1.zip | |
[ELF] - Refactor of Writer<ELFT>::forEachRelSec.
There is no need to scan over all input sections for relocatable output.
As we do not process or scan relocations anyways.
Patch moves check for Config->Relocatable out to avoid that and also removes
excessive check for isa<EhInputSection> from first for loop.
It is excessive because we handle all of them in a second for loop below.
That all allowed to simplify code.
Differential revision: https://reviews.llvm.org/D37746
llvm-svn: 313127
Diffstat (limited to 'llvm/lib/Object/Error.cpp')
0 files changed, 0 insertions, 0 deletions

