[PATCH] D84526: [yaml2obj] - Add a support for "<none>" value for all optional fields.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 06:36:25 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

It implements an approach suggested in the D84398 <https://reviews.llvm.org/D84398> thread.

With it the following:

  Sections:
    - Name:   .bar
      Type:   SHT_PROGBITS
      Offset: [[MACRO=<none>]]

works just like the `Offset` key was not specified.
It is useful for tests that want to have a default value for a field and to
have a way to override it at the same time.


https://reviews.llvm.org/D84526

Files:
  llvm/include/llvm/Support/YAMLTraits.h
  llvm/test/tools/yaml2obj/ELF/none-value.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84526.280441.patch
Type: text/x-patch
Size: 10239 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200724/8fff6b35/attachment.bin>


More information about the llvm-commits mailing list