diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2014-05-15 16:14:02 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2014-05-15 16:14:02 +0000 |
commit | 926273d496caccc5dbe239cc4987d7ada0d0ad5c (patch) | |
tree | 4b963a130e6604f1f89eed49cb1cba0516351f54 /tools/yaml2obj/yaml2elf.cpp | |
parent | 70e3aba8555b03986ca64b4063b1c8522cbde662 (diff) | |
download | llvm-926273d496caccc5dbe239cc4987d7ada0d0ad5c.tar.gz llvm-926273d496caccc5dbe239cc4987d7ada0d0ad5c.tar.bz2 llvm-926273d496caccc5dbe239cc4987d7ada0d0ad5c.tar.xz |
[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
Diffstat (limited to 'tools/yaml2obj/yaml2elf.cpp')
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index 1d2beda713..3190b27d32 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -477,13 +477,13 @@ int yaml2elf(llvm::raw_ostream &Out, llvm::MemoryBuffer *Buf) { typedef ELFType<support::big, 4, false> BE32; if (is64Bit(Doc)) { if (isLittleEndian(Doc)) - return ELFState<LE64>::writeELF(outs(), Doc); + return ELFState<LE64>::writeELF(Out, Doc); else - return ELFState<BE64>::writeELF(outs(), Doc); + return ELFState<BE64>::writeELF(Out, Doc); } else { if (isLittleEndian(Doc)) - return ELFState<LE32>::writeELF(outs(), Doc); + return ELFState<LE32>::writeELF(Out, Doc); else - return ELFState<BE32>::writeELF(outs(), Doc); + return ELFState<BE32>::writeELF(Out, Doc); } } |