diff options
author | Fangrui Song <maskray@google.com> | 2020-02-03 11:12:04 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-02-07 09:35:00 -0800 |
commit | e3951248b14f5523cb93b380f0995d611a56192f (patch) | |
tree | 18b8056d6d61546f0ebfa44973db71642db4cbe5 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e52414b1ae466acf900fc4515abf7de5a3fd6fca (diff) | |
download | llvm-e3951248b14f5523cb93b380f0995d611a56192f.zip llvm-e3951248b14f5523cb93b380f0995d611a56192f.tar.gz llvm-e3951248b14f5523cb93b380f0995d611a56192f.tar.bz2 |
[yaml2obj] Add -D k=v to preprocess the input YAML
Examples:
```
yaml2obj -D MACHINE=EM_386 a.yaml -o a.o
yaml2obj -D MACHINE=0x1234 a.yaml -o a.o
```
where a.yaml contains:
```
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2MSB
Type: ET_REL
Machine: [[MACHINE]]
```
Reviewed By: grimar, jhenderson
Differential Revision: https://reviews.llvm.org/D73821
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions