summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp6
-rw-r--r--lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp2
2 files changed, 5 insertions, 3 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";
diff --git a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
index f5cb351e229..55af7b6497e 100644
--- a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
+++ b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
@@ -1193,7 +1193,7 @@ public:
virtual error_code writeFile(const lld::File &file, StringRef outPath) {
// Create stream to path.
std::string errorInfo;
- llvm::raw_fd_ostream out(outPath.data(), errorInfo);
+ llvm::raw_fd_ostream out(outPath.data(), errorInfo, llvm::sys::fs::F_None);
if (!errorInfo.empty())
return llvm::make_error_code(llvm::errc::no_such_file_or_directory);
OpenPOWER on IntegriCloud