diff options
author | Rui Ueyama <ruiu@google.com> | 2017-10-06 23:06:55 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-10-06 23:06:55 +0000 |
commit | d2f225fdef3120443b8f92382de5bacfc2985ba7 (patch) | |
tree | 93b359c30e99200e5af68aee6d63b748c90d8cfc /clang | |
parent | edafba200f8da2b67a41bfec3d104a2e02bec0e0 (diff) | |
download | bcm5719-llvm-d2f225fdef3120443b8f92382de5bacfc2985ba7.tar.gz bcm5719-llvm-d2f225fdef3120443b8f92382de5bacfc2985ba7.zip |
Simplify LinkerScript::addOrphanSections. NFCI.
This patch moves a std::find to a new function. It also removes
the following piece of code. I believe it should be fine because all
tests still pass.
unsigned Index = std::distance(Opt.Commands.begin(), I);
assert(Sec->SectionIndex == INT_MAX || Sec->SectionIndex == Index);
Sec->SectionIndex = Index;
llvm-svn: 315125
Diffstat (limited to 'clang')
0 files changed, 0 insertions, 0 deletions