summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-24 15:06:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-24 15:06:34 +0000
commit27810169cbbc9365a720f0bf68bc44a60a7b6466 (patch)
treebac34b0f9946fa9b5334ecb17c5f3b60cae25dba /lld/lib/Driver/WinLinkDriver.cpp
parent4bf7a268e0fd0fb493e1b05d6e37771ff98758a8 (diff)
downloadbcm5719-llvm-27810169cbbc9365a720f0bf68bc44a60a7b6466.tar.gz
bcm5719-llvm-27810169cbbc9365a720f0bf68bc44a60a7b6466.zip
Don't assume that F_None is the default. It is about to change.
llvm-svn: 202039
Diffstat (limited to 'lld/lib/Driver/WinLinkDriver.cpp')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 6cc223f1629..7f160c63780 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -445,7 +445,8 @@ static bool createManifestResourceFile(PECOFFLinkingContext &ctx,
// Open the temporary file for writing.
std::string errorInfo;
- llvm::raw_fd_ostream out(rcFileSmallString.c_str(), errorInfo);
+ llvm::raw_fd_ostream out(rcFileSmallString.c_str(), errorInfo,
+ llvm::sys::fs::F_None);
if (!errorInfo.empty()) {
diagnostics << "Failed to open " << ctx.getManifestOutputPath() << ": "
<< errorInfo << "\n";
@@ -503,7 +504,8 @@ static bool createManifestResourceFile(PECOFFLinkingContext &ctx,
static bool createSideBySideManifestFile(PECOFFLinkingContext &ctx,
raw_ostream &diagnostics) {
std::string errorInfo;
- llvm::raw_fd_ostream out(ctx.getManifestOutputPath().data(), errorInfo);
+ llvm::raw_fd_ostream out(ctx.getManifestOutputPath().data(), errorInfo,
+ llvm::sys::fs::F_None);
if (!errorInfo.empty()) {
diagnostics << "Failed to open " << ctx.getManifestOutputPath() << ": "
<< errorInfo << "\n";
OpenPOWER on IntegriCloud