[all-commits] [llvm/llvm-project] 38c5d6: [yaml2obj] - Add a technical prefix for each unnam...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Sat May 23 07:34:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 38c5d6f70060046bbbfec7491c7ba54a50fa5d16
      https://github.com/llvm/llvm-project/commit/38c5d6f70060046bbbfec7491c7ba54a50fa5d16
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-05-23 (Sat, 23 May 2020)

  Changed paths:
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/test/tools/yaml2obj/ELF/custom-null-section.yaml
    M llvm/test/tools/yaml2obj/ELF/section-link.yaml

  Log Message:
  -----------
  [yaml2obj] - Add a technical prefix for each unnamed chunk.

This change does not affect the produced binary.

In this patch I assign a technical suffix to each section/fill
(i.e. chunk) name when it is empty. It allows to simplify the code
slightly and improve error messages reported.

In the code we have the section to index mapping, SN2I, which is
globally used. With this change we can use it to map "empty"
names to indexes now, what is helpful.

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




More information about the All-commits mailing list