diff options
author | Fangrui Song <i@maskray.me> | 2022-07-14 00:32:48 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-07-14 00:32:48 -0700 |
commit | cfec2080b7a6ffb023044219630bcb44a1dad14b (patch) | |
tree | 5fb8ce168ef74e4413fdf25b14c8c87955c9412e /llvm/test/ObjectYAML | |
parent | 42b3a5fb463fd616d981888abaf0f48ab0065a8d (diff) | |
download | llvm-cfec2080b7a6ffb023044219630bcb44a1dad14b.zip llvm-cfec2080b7a6ffb023044219630bcb44a1dad14b.tar.gz llvm-cfec2080b7a6ffb023044219630bcb44a1dad14b.tar.bz2 |
[obj2yaml] Add -o to specify output filename
-o is very common among tools. yaml2obj supports -o and it surprised me that
obj2yaml doesn't support -o. Just add it which doesn't take much code.
Differential Revision: https://reviews.llvm.org/D129713
Diffstat (limited to 'llvm/test/ObjectYAML')
-rw-r--r-- | llvm/test/ObjectYAML/Offload/default.yaml | 6 | ||||
-rw-r--r-- | llvm/test/ObjectYAML/wasm/header.yaml | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/llvm/test/ObjectYAML/Offload/default.yaml b/llvm/test/ObjectYAML/Offload/default.yaml index 7b147b8..ac8e89e 100644 --- a/llvm/test/ObjectYAML/Offload/default.yaml +++ b/llvm/test/ObjectYAML/Offload/default.yaml @@ -1,4 +1,8 @@ -# RUN: yaml2obj %s | obj2yaml | FileCheck %s +# RUN: yaml2obj %s -o %t +# RUN: obj2yaml %t > %t.stdout.yaml +# RUN: obj2yaml %t -o %t.file.yaml 2>&1 | count 0 +# RUN: FileCheck --input-file=%t.stdout.yaml %s +# RUN: diff %t.stdout.yaml %t.file.yaml !Offload Members: - diff --git a/llvm/test/ObjectYAML/wasm/header.yaml b/llvm/test/ObjectYAML/wasm/header.yaml index a182d3e..7cfd6a9 100644 --- a/llvm/test/ObjectYAML/wasm/header.yaml +++ b/llvm/test/ObjectYAML/wasm/header.yaml @@ -1,4 +1,8 @@ -# RUN: yaml2obj %s | obj2yaml | FileCheck %s +# RUN: yaml2obj %s -o %t +# RUN: obj2yaml %t > %t.stdout.yaml +# RUN: obj2yaml %t -o %t.file.yaml 2>&1 | count 0 +# RUN: FileCheck --input-file=%t.stdout.yaml %s +# RUN: diff %t.stdout.yaml %t.file.yaml --- !WASM FileHeader: Version: 0x00000001 |