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

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 29 06:18:21 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, hiraditya, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
grimar requested review of this revision.

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

This makes it to be optional and fixes corresponding test cases.


https://reviews.llvm.org/D90390

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90390.301595.patch
Type: text/x-patch
Size: 10393 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201029/ecea3091/attachment.bin>


More information about the llvm-commits mailing list