// 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";
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";
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);