Don't assume that F_None is the default. It is about to change.

llvm-svn: 202040
This commit is contained in:
Rafael Espindola 2014-02-24 15:06:52 +00:00
parent 27810169cb
commit 04a13befd8
6 changed files with 7 additions and 6 deletions

View File

@ -41,7 +41,7 @@ void arcmt::writeARCDiagsToPlist(const std::string &outPath,
}
std::string errMsg;
llvm::raw_fd_ostream o(outPath.c_str(), errMsg);
llvm::raw_fd_ostream o(outPath.c_str(), errMsg, llvm::sys::fs::F_None);
if (!errMsg.empty()) {
llvm::errs() << "error: could not create file: " << outPath << '\n';
return;

View File

@ -171,7 +171,7 @@ void DependencyFileCallback::OutputDependencyFile() {
}
std::string Err;
llvm::raw_fd_ostream OS(OutputFile.c_str(), Err);
llvm::raw_fd_ostream OS(OutputFile.c_str(), Err, llvm::sys::fs::F_None);
if (!Err.empty()) {
PP->getDiagnostics().Report(diag::err_fe_error_opening)
<< OutputFile << Err;

View File

@ -101,7 +101,7 @@ DependencyGraphCallback::writeNodeReference(raw_ostream &OS,
void DependencyGraphCallback::OutputGraphFile() {
std::string Err;
llvm::raw_fd_ostream OS(OutputFile.c_str(), Err);
llvm::raw_fd_ostream OS(OutputFile.c_str(), Err, llvm::sys::fs::F_None);
if (!Err.empty()) {
PP->getDiagnostics().Report(diag::err_fe_error_opening)
<< OutputFile << Err;

View File

@ -451,7 +451,7 @@ void DumpModuleInfoAction::ExecuteAction() {
if (!OutputFileName.empty() && OutputFileName != "-") {
std::string ErrorInfo;
OutFile.reset(new llvm::raw_fd_ostream(OutputFileName.str().c_str(),
ErrorInfo));
ErrorInfo, llvm::sys::fs::F_None));
}
llvm::raw_ostream &Out = OutFile.get()? *OutFile.get() : llvm::outs();

View File

@ -2940,7 +2940,8 @@ static void updateModuleTimestamp(ModuleFile &MF) {
// Overwrite the timestamp file contents so that file's mtime changes.
std::string TimestampFilename = MF.getTimestampFilename();
std::string ErrorInfo;
llvm::raw_fd_ostream OS(TimestampFilename.c_str(), ErrorInfo);
llvm::raw_fd_ostream OS(TimestampFilename.c_str(), ErrorInfo,
llvm::sys::fs::F_None);
if (!ErrorInfo.empty())
return;
OS << "Timestamp file\n";

View File

@ -337,7 +337,7 @@ void PlistDiagnostics::FlushDiagnosticsImpl(
// Open the file.
std::string ErrMsg;
llvm::raw_fd_ostream o(OutputFile.c_str(), ErrMsg);
llvm::raw_fd_ostream o(OutputFile.c_str(), ErrMsg, llvm::sys::fs::F_None);
if (!ErrMsg.empty()) {
llvm::errs() << "warning: could not create file: " << OutputFile << '\n';
return;