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.
Paths
| Differential D90390
[yaml2obj] - Make `Section::Link` field to be `Optional<>`. ClosedPublic Authored by grimar on Oct 29 2020, 6:18 AM.
Details Summary Link is not an optional field currently. This makes it to be optional and fixes corresponding test cases.
Diff Detail
Event TimelineComment Actions LGTM.
This makes it optional... This revision is now accepted and ready to land.Oct 29 2020, 9:07 AM Closed by commit rG2bfaf19516d6: [yaml2obj] - Make `Section::Link` field to be `Optional<>`. (authored by grimar). · Explain WhyOct 30 2020, 6:25 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 301874 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
|