[yaml2obj][COFF] Allow variable number of directories
authorAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Thu, 9 Sep 2021 10:14:52 +0000 (11:14 +0100)
committerJames Henderson <james.henderson@sony.com>
Thu, 9 Sep 2021 10:16:56 +0000 (11:16 +0100)
commitb33fd3177229c67fe44b65fff8666a7746595daa
tree8311bb05cf63d01abd6e45f6180c3904150e6fe7
parentecff9e3da54ec796eb2c58aca1c3047cdcd4560b
[yaml2obj][COFF] Allow variable number of directories

Allow variable number of directories, as allowed by the
specification. NumberOfRvaAndSize will default to 16 if not specified,
as in the past.

Reviewed by: jhenderson

Differential Revision: https://reviews.llvm.org/D108825
llvm/lib/ObjectYAML/COFFEmitter.cpp
llvm/lib/ObjectYAML/COFFYAML.cpp
llvm/test/tools/yaml2obj/COFF/variable-number-rva.yaml [new file with mode: 0644]
llvm/tools/llvm-readobj/COFFDumper.cpp
llvm/tools/obj2yaml/coff2yaml.cpp