diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-07-17 12:31:50 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-07-17 12:31:50 +0000 |
commit | 946dbd83df0aa42e67a0a17af32475b273c2e8f8 (patch) | |
tree | 242ce005e977f81c8a132ba79f3a8b6c7388f983 /tools | |
parent | e8a2742352fa358159577b01ead8f508c0c7a376 (diff) | |
download | external_llvm-946dbd83df0aa42e67a0a17af32475b273c2e8f8.zip external_llvm-946dbd83df0aa42e67a0a17af32475b273c2e8f8.tar.gz external_llvm-946dbd83df0aa42e67a0a17af32475b273c2e8f8.tar.bz2 |
llvm-ar: doExtract(): Write extracted files with F_Binary. It should fix llvm/test/Object/extract.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-ar/llvm-ar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 9b55a81..bd10f6f 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -304,7 +304,7 @@ static void doExtract(StringRef Name, object::Archive::child_iterator I) { int FD; failIfError( - sys::fs::openFileForWrite(Storage.c_str(), FD, sys::fs::F_None, Mode), + sys::fs::openFileForWrite(Storage.c_str(), FD, sys::fs::F_Binary, Mode), Storage.c_str()); { |