Update for llvm api change.

llvm-svn: 202055
This commit is contained in:
Rafael Espindola 2014-02-24 18:21:04 +00:00
parent f27f9fa136
commit 26af26255c
6 changed files with 6 additions and 6 deletions

View File

@ -247,7 +247,7 @@ bool writeFiles(const clang::Rewriter &Rewrites) {
std::string ErrorInfo;
llvm::raw_fd_ostream FileStream(FileName, ErrorInfo, llvm::sys::fs::F_None);
llvm::raw_fd_ostream FileStream(FileName, ErrorInfo, llvm::sys::fs::F_Text);
if (!ErrorInfo.empty()) {
errs() << "Warning: Could not write to " << FileName << "\n";
continue;

View File

@ -273,7 +273,7 @@ int main(int argc, char **argv) {
// Write new file to disk
std::string ErrorInfo;
llvm::raw_fd_ostream FileStream(I->getKey().str().c_str(), ErrorInfo,
llvm::sys::fs::F_None);
llvm::sys::fs::F_Text);
if (!ErrorInfo.empty()) {
llvm::errs() << "Could not open " << I->getKey() << " for writing\n";
continue;

View File

@ -52,7 +52,7 @@ void writePerfDataJSON(
std::string ErrorInfo;
llvm::raw_fd_ostream FileStream(SS.str().c_str(), ErrorInfo,
llvm::sys::fs::F_None);
llvm::sys::fs::F_Text);
FileStream << "{\n";
FileStream << " \"Sources\" : [\n";
for (SourcePerfData::const_iterator I = TimingResults.begin(),

View File

@ -74,7 +74,7 @@ bool ReplacementHandling::serializeReplacements(
std::string ErrorInfo;
raw_fd_ostream ReplacementsFile(ReplacementsFileName.c_str(), ErrorInfo,
fs::F_Binary);
fs::F_None);
if (!ErrorInfo.empty()) {
errs() << "Error opening file: " << ErrorInfo << "\n";
Errors = true;

View File

@ -249,7 +249,7 @@ static bool writeModuleMap(llvm::StringRef ModuleMapPath,
// Set up module map output file.
std::string Error;
llvm::tool_output_file Out(FilePath.c_str(), Error, llvm::sys::fs::F_None);
llvm::tool_output_file Out(FilePath.c_str(), Error, llvm::sys::fs::F_Text);
if (!Error.empty()) {
llvm::errs() << Argv0 << ": error opening " << FilePath << ":" << Error
<< "\n";

View File

@ -215,7 +215,7 @@ int main(int Argc, const char **Argv) {
// Set up output file.
std::string Error;
llvm::tool_output_file Out(OutputFileName.c_str(), Error,
llvm::sys::fs::F_None);
llvm::sys::fs::F_Text);
if (!Error.empty()) {
llvm::errs() << "pp-trace: error creating " << OutputFileName << ":"
<< Error << "\n";