llvm-project/llvm/test/tools
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
..
UpdateTestChecks Revert "[PM/CC1] Add -f[no-]split-cold-code CC1 option to toggle splitting" 2020-10-19 12:31:14 +02:00
dsymutil [MachO] Also recongize __swift_ast as a debug info section 2020-11-02 14:49:57 -08:00
gold Add test utility 'split-file' 2020-08-03 20:42:09 -07:00
llc [llc] Use -filetype=null to disable MIR printing 2020-10-16 16:51:56 +01:00
llvm-ar [llvm-ar][test][AIX] Unsupport error-opening-directory.test on AIX 2020-07-13 12:00:07 -04:00
llvm-as [test] Run llvm/test/**/*.yaml & don't run llvm/test/**/*.cxx (not exist) 2020-07-08 10:22:49 -07:00
llvm-cfi-verify
llvm-config [Test] Tidy up loose ends from LLVM_HAS_GLOBAL_ISEL 2020-08-27 16:36:27 +01:00
llvm-cov [llvm-cov][NFC] Remove unused prefixes from FileCheck usage 2020-10-30 08:28:10 -07:00
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap
llvm-diff
llvm-dlltool Make test/tools/llvm-dlltool/tool-name.test pass, and make it run 2020-11-03 11:59:15 -05:00
llvm-dwarfdump [dwarfdump] Recognize __apple sections as debug info sections 2020-10-29 17:54:34 -07:00
llvm-dwp llvm-dwarfdump: Include unit count in DWP index header dumping 2020-06-12 12:40:02 -07:00
llvm-elfabi [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
llvm-exegesis [llvm-exegesis][X86] Save and restore eflags. 2020-11-04 10:44:15 +01:00
llvm-extract
llvm-gsymutil [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
llvm-ifs [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
llvm-isel-fuzzer
llvm-lib [llvm-lib] Support adding short import library objects with llvm-lib 2020-07-24 22:15:08 +03:00
llvm-libtool-darwin [llvm-libtool-darwin] Add support for LLVM bitcode files 2020-10-29 12:00:44 -07:00
llvm-link Fix test that was accidentally adding the llvm-as binary into an 2020-07-14 17:07:40 -07:00
llvm-lipo [llvm-lipo] Add support for bitcode files 2020-08-25 21:11:18 -07:00
llvm-lit
llvm-locstats
llvm-lto [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
llvm-lto2
llvm-mc
llvm-mca [TableGen][SchedModels] Fix read/write variant substitution 2020-11-02 17:39:04 +03:00
llvm-ml [ms] [llvm-ml] Allow arbitrary strings as integer constants 2020-11-06 17:15:49 -05:00
llvm-modextract
llvm-mt
llvm-nm [test] Run llvm/test/**/*.yaml & don't run llvm/test/**/*.cxx (not exist) 2020-07-08 10:22:49 -07:00
llvm-objcopy [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
llvm-objdump [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
llvm-opt-fuzzer
llvm-opt-report
llvm-pdbutil
llvm-profdata [llvm-profdata]Fix llvm-profdata crash on compact binary profile 2020-09-20 16:58:34 -07:00
llvm-ranlib
llvm-rc [llvm-rc] Allow omitting components from VERSIONINFO versions 2020-09-16 09:34:26 +03:00
llvm-readobj [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
llvm-size [llvm-size] Output REL, RELA and STRTAB sections when allocatable 2020-07-01 12:02:32 +01:00
llvm-split
llvm-strings Add test utility 'split-file' 2020-08-03 20:42:09 -07:00
llvm-symbolizer Revert "Add "not" to an llvm-symbolizer test that expects to fail" 2020-10-21 21:59:48 -07:00
llvm-xray [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
lto Fix llvm/test/tools/lto/hide-linkonce-odr.ll 2020-08-21 18:32:35 -07:00
not Disable 'not' test on Windows because 'env' from GnuWin32 cannot be used without arguments. 2020-08-24 21:55:34 -04:00
obj2yaml [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
opt-viewer
sancov
sanstats
split-file Add test utility 'split-file' 2020-08-03 20:42:09 -07:00
yaml2obj [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00