Georgii Rymar
a7a447be0f
[yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list.
...
Imagine we have a YAML declaration of few sections: `foo1`, `<unnamed 2>`, `foo3`, `foo4`.
To put them into segment we can do (1*):
```
Sections:
- Section: foo1
- Section: foo4
```
or we can use (2*):
```
Sections:
- Section: foo1
- Section: foo3
- Section: foo4
```
or (3*) :
```
Sections:
- Section: foo1
## "(index 2)" here is a name that we automatically created for a unnamed section.
- Section: (index 2)
- Section: foo3
- Section: foo4
```
It looks really confusing that we don't have to list all of sections.
At first I've tried to make this rule stricter and report an error when there is a gap
(i.e. when a section is included into segment, but not listed explicitly).
This did not work perfect, because such approach conflicts with unnamed sections/fills (see (3*)).
This patch drops "Sections" key and introduces 2 keys instead: `FirstSec` and `LastSec`.
Both are optional.
Differential revision: https://reviews.llvm.org/D90458
2020-11-09 13:00:50 +03:00
..
2020-07-21 08:33:19 -07:00
2020-09-30 11:43:34 +03:00
2020-10-09 11:48:49 +03:00
2020-05-22 05:36:15 -06:00
2020-10-07 16:45:30 +03:00
2020-11-09 13:00:50 +03:00
2020-11-03 16:27:48 +00:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-28 11:31:25 +03:00
2020-05-28 10:07:48 +02:00
2020-08-26 14:41:16 +03:00
2020-11-09 12:53:53 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-08-03 14:07:06 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-21 15:07:37 +03:00
2020-08-03 12:41:00 +03:00
2020-10-06 12:04:44 +03:00
2020-08-04 11:40:02 +03:00
2020-10-09 11:48:49 +03:00
2020-08-09 11:10:12 +03:00
2020-11-09 13:00:50 +03:00
2020-08-03 14:07:06 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-10-15 11:17:14 +02:00
2020-10-14 13:04:27 -04:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-09-14 14:31:50 +03:00
2020-08-18 16:23:41 +03:00
2020-08-17 15:16:36 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-08-03 14:07:06 +03:00
2020-08-03 14:07:06 +03:00
2020-08-03 14:07:06 +03:00
2020-08-03 14:07:06 +03:00
2020-08-03 14:07:06 +03:00
2020-08-03 14:07:06 +03:00
2020-08-03 14:07:06 +03:00
2020-08-03 14:07:06 +03:00
2020-11-09 13:00:50 +03:00
2020-09-23 13:25:39 +03:00
2020-08-12 14:03:56 +03:00
2020-10-30 16:18:53 +03:00
2020-10-27 13:29:39 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-09-23 13:25:39 +03:00
2020-08-20 11:40:51 +03:00
2020-08-26 14:13:05 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-09-03 13:17:07 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-03 11:30:28 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-10-27 13:29:39 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00