[all-commits] [llvm/llvm-project] d919ae: [yaml2obj] - Add a support for "<none>" value for ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Aug 3 02:28:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d919ae9df8721a56c8457fd5f9cfd50a71c87262
      https://github.com/llvm/llvm-project/commit/d919ae9df8721a56c8457fd5f9cfd50a71c87262
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-03 (Mon, 03 Aug 2020)

  Changed paths:
    M llvm/include/llvm/Support/YAMLTraits.h
    A llvm/test/tools/yaml2obj/ELF/none-value.yaml

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

It implements an approach suggested in the 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.

Differential revision: https://reviews.llvm.org/D84526




More information about the All-commits mailing list