[lld] r202039 - Don't assume that F_None is the default. It is about to change.
Rafael Espindola
rafael.espindola at gmail.com
Mon Feb 24 07:06:34 PST 2014
Author: rafael
Date: Mon Feb 24 09:06:34 2014
New Revision: 202039
URL: http://llvm.org/viewvc/llvm-project?rev=202039&view=rev
Log:
Don't assume that F_None is the default. It is about to change.
Modified:
lld/trunk/lib/Driver/WinLinkDriver.cpp
lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
Modified: lld/trunk/lib/Driver/WinLinkDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkDriver.cpp?rev=202039&r1=202038&r2=202039&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkDriver.cpp (original)
+++ lld/trunk/lib/Driver/WinLinkDriver.cpp Mon Feb 24 09:06:34 2014
@@ -445,7 +445,8 @@ static bool createManifestResourceFile(P
// 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(P
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";
Modified: lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp?rev=202039&r1=202038&r2=202039&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp (original)
+++ lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp Mon Feb 24 09:06:34 2014
@@ -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);
More information about the llvm-commits
mailing list