[yaml2obj/obj2yaml] - Make Value/Size fields of Symbol optional.
authorGeorgii Rymar <grimar@accesssoftek.com>
Wed, 9 Dec 2020 13:46:42 +0000 (16:46 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 16 Dec 2020 10:49:57 +0000 (13:49 +0300)
commit8c2cf89834c3496be343525b9f9c6aecc9182117
tree958c0c39737b108d34fbce8234142609069414e1
parent407d42002904ce541f732ce4300913ef57cff232
[yaml2obj/obj2yaml] - Make Value/Size fields of Symbol optional.

When a field is optional we can use the `=<none>` syntax in macros.
This patch makes `Value`/`Size` fields of `Symbol` optional
and adds test cases for them.

Differential revision: https://reviews.llvm.org/D93010
llvm/include/llvm/ObjectYAML/ELFYAML.h
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/tools/obj2yaml/ELF/symbol.yaml [new file with mode: 0644]
llvm/test/tools/yaml2obj/ELF/symbol-size.yaml [new file with mode: 0644]
llvm/test/tools/yaml2obj/ELF/symbol-value.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/elf2yaml.cpp