[yaml2obj] - Change how we handle implicit sections.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 22 Jul 2019 12:01:52 +0000 (12:01 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 22 Jul 2019 12:01:52 +0000 (12:01 +0000)
commit13a364e1cc9a406a83cfbb64a1d5d89e73d01f23
tree3614aa8f10f1775015f3f7ffbd87bb226eaa4ef1
parent5d4bc1293cc9dbdf6b581ced824ff5019a35cda9
[yaml2obj] - Change how we handle implicit sections.

Instead of having the special list of implicit sections,
that are mixed with the sections read from YAML on late
stages, I just create the placeholders and add them to
the main sections list early.

That allows to significantly simplify the code.

Differential revision: https://reviews.llvm.org/D64999

llvm-svn: 366677
llvm/include/llvm/ObjectYAML/ELFYAML.h
llvm/tools/yaml2obj/yaml2elf.cpp