[all-commits] [llvm/llvm-project] 64bae0: [yaml2obj] - Support reading a content as an array...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Tue Jun 30 02:20:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 64bae035ef8c1ca438c412310ef4f3906dd56b77
https://github.com/llvm/llvm-project/commit/64bae035ef8c1ca438c412310ef4f3906dd56b77
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-06-30 (Tue, 30 Jun 2020)
Changed paths:
M llvm/include/llvm/ObjectYAML/ELFYAML.h
M llvm/lib/ObjectYAML/ELFYAML.cpp
A llvm/test/tools/yaml2obj/ELF/content-array.yaml
Log Message:
-----------
[yaml2obj] - Support reading a content as an array of bytes using the new 'ContentArray' key.
It implements the way to describe a section content using a multi line description. E.g:
```
- Name: .foo
Type: SHT_PROGBITS
ContentArray: [ 0x11, 0x22, 0x33, 0x44, ## .long 11223344
0x55, 0x66, ## .short 5566.
0x77, ## .byte 0x77
0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x00 ] ## .quad 0x8899aabbccddeeff
```
It was briefly discussed in D75123 thread previously.
Differential revision: https://reviews.llvm.org/D82366
More information about the All-commits
mailing list