mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:29:58 +00:00
18c1f9730e
* Hide unrelated options. * Add "OVERVIEW: " to yaml2obj -h/--help. * Place options under a yaml2obj category. * Disallow -docnum. Currently -docnum is the only yaml2obj specific long option that is affected. * Specify `cl::init("-")` and `cl::Prefix` for OutputFilename. The latter allows `-ofile` Reviewed By: grimar, jhenderson Differential Revision: https://reviews.llvm.org/D73982
20 lines
423 B
YAML
20 lines
423 B
YAML
## Test that -o sets the output file name.
|
|
|
|
# RUN: rm -f %t
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: ls %t
|
|
# RUN: rm -f %t
|
|
# RUN: yaml2obj %s -o%t
|
|
# RUN: ls %t
|
|
|
|
# RUN: not yaml2obj -o %p/path/does/not/exist 2>&1 | FileCheck %s
|
|
|
|
# CHECK: yaml2obj: error: failed to open '{{.*}}/path/does/not/exist': {{[Nn]}}o such file or directory
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_NONE
|