[LLVM up] Update for raw_fd_ostream change. This fixes a FIXME that
the Backend output should be done in binary mode.
- I'd appreciate it if someone who has a Windows build could verify
this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59221 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/Backend.cpp b/Driver/Backend.cpp
index f16c069..aad2d04 100644
--- a/Driver/Backend.cpp
+++ b/Driver/Backend.cpp
@@ -170,8 +170,7 @@
OutputFile = Path.toString();
}
- // FIXME: Should be binary.
- AsmOutStream = new raw_fd_ostream(OutputFile.c_str(), Error);
+ AsmOutStream = new raw_fd_ostream(OutputFile.c_str(), true, Error);
if (!Error.empty())
return false;
}