[all-commits] [llvm/llvm-project] d8bb30: [yaml2obj] - Allow specifying no tags to create em...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Thu Oct 15 01:22:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d8bb30c5518054c787b4278ab5a4ab371d86defe
      https://github.com/llvm/llvm-project/commit/d8bb30c5518054c787b4278ab5a4ab371d86defe
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-10-15 (Thu, 15 Oct 2020)

  Changed paths:
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/lib/ObjectYAML/ELFYAML.cpp
    M llvm/test/tools/yaml2obj/ELF/gnu-hash-section.yaml
    M llvm/test/tools/yaml2obj/ELF/hash-section.yaml
    M llvm/test/tools/yaml2obj/ELF/llvm-addrsig-section.yaml
    M llvm/test/tools/yaml2obj/ELF/note-section.yaml
    M llvm/test/tools/yaml2obj/ELF/stack-sizes.yaml

  Log Message:
  -----------
  [yaml2obj] - Allow specifying no tags to create empty sections in few cases.

Currently we have a few sections that
does not support specifying no keys for them. E.g. it is required that one
of "Content", "Size" or "Entries" key is present. There is no reason to
have this restriction. We can allow this and emit an empty section instead.

This opens road for a simplification and generalization of the code in `validate()`
that is discussed in the D89039 thread.

Depends on D89039.

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




More information about the All-commits mailing list