[all-commits] [llvm/llvm-project] 2bfaf1: [yaml2obj] - Make `Section::Link` field to be `Opt...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri Oct 30 06:25:49 PDT 2020


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

  Changed paths:
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/lib/ObjectYAML/ELFYAML.cpp
    M llvm/test/tools/llvm-readobj/ELF/relr-relocs.test
    M llvm/test/tools/obj2yaml/ELF/DWARF/debug-addr.yaml
    M llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
    M llvm/test/tools/obj2yaml/ELF/DWARF/debug-ranges.yaml
    M llvm/test/tools/obj2yaml/ELF/DWARF/debug-str.yaml
    M llvm/test/tools/yaml2obj/ELF/dynsym-section.yaml
    M llvm/tools/obj2yaml/elf2yaml.cpp

  Log Message:
  -----------
  [yaml2obj] - Make `Section::Link` field to be `Optional<>`.

`Link` is not an optional field currently.
Because of this it is not convenient to write macros.

This makes it optional and fixes corresponding test cases.

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




More information about the All-commits mailing list