forked from OSchip/llvm-project
Don't assume that F_None is the default. It is about to change.
llvm-svn: 202040
This commit is contained in:
parent
27810169cb
commit
04a13befd8
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue