llvm-ar: doExtract(): Write extracted files with F_Binary. It should fix llvm/test/Object/extract.ll

llvm-svn: 186503
This commit is contained in:
NAKAMURA Takumi 2013-07-17 12:31:50 +00:00
parent 633f59d126
commit e08f569a4d
1 changed files with 1 additions and 1 deletions

View File

@ -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());
{