[yaml2obj] Add "-o" command line option to specify an output file name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208900 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Atanasyan
2014-05-15 16:14:02 +00:00
parent 70e3aba855
commit 926273d496
4 changed files with 37 additions and 11 deletions

View File

@@ -1,4 +1,7 @@
# RUN: yaml2obj -format=elf %s | llvm-readobj -sections -section-data - | FileCheck %s
# RUN: yaml2obj -format=elf -o %t %s
# RUN: llvm-readobj -sections -section-data %t | FileCheck %s
!ELF
FileHeader:
Class: ELFCLASS64

View File

@@ -1,4 +1,7 @@
RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers -relocations -expand-relocs - | FileCheck %s --check-prefix COFF-I386
RUN: yaml2obj -o %t %p/Inputs/COFF/i386.yaml
RUN: llvm-readobj -file-headers -relocations -expand-relocs %t \
RUN: | FileCheck %s --check-prefix COFF-I386
// COFF-I386: Characteristics [ (0x200)
// COFF-I386-NEXT: IMAGE_FILE_DEBUG_STRIPPED (0x200)