[all-commits] [llvm/llvm-project] 3d4c87: [yaml2obj] - Map section names to chunks for each ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue May 26 02:32:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d4c873a14fe2ffb5cd6ac329354857eef245196
      https://github.com/llvm/llvm-project/commit/3d4c873a14fe2ffb5cd6ac329354857eef245196
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/lib/ObjectYAML/ELFEmitter.cpp

  Log Message:
  -----------
  [yaml2obj] - Map section names to chunks for each ELFYAML::ProgramHeader early. NFCI.

Each `ELFYAML::ProgramHeader` currently contains a list of section names
included. We are trying to map them to Fill/Sections very late,
though we can create such mapping early, in `initProgramHeaders`.

The benefit is that with such change it is possible to access mapped
chunks earlier (for example during writing section content) and have
simpler code.

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




More information about the All-commits mailing list