diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-25 15:36:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-25 15:36:09 +0000 |
commit | a98e0e73deab0fef9dcb8f6e591e68704c27d760 (patch) | |
tree | 33260fbd8f970dbd386046f405c4307494ad9ae8 /clang/lib/Frontend/FixItRewriter.cpp | |
parent | 61a8796ddbc1669184bdb5b947796305243da4eb (diff) | |
download | bcm5719-llvm-a98e0e73deab0fef9dcb8f6e591e68704c27d760.tar.gz bcm5719-llvm-a98e0e73deab0fef9dcb8f6e591e68704c27d760.zip |
Update clang for raw_fd_ostream no longer requiring F_Force.
llvm-svn: 79991
Diffstat (limited to 'clang/lib/Frontend/FixItRewriter.cpp')
-rw-r--r-- | clang/lib/Frontend/FixItRewriter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Frontend/FixItRewriter.cpp b/clang/lib/Frontend/FixItRewriter.cpp index 98e2503d59d..ba58df5d833 100644 --- a/clang/lib/Frontend/FixItRewriter.cpp +++ b/clang/lib/Frontend/FixItRewriter.cpp @@ -46,8 +46,7 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName, if (!OutFileName.empty()) { std::string Err; OutFile = new llvm::raw_fd_ostream(OutFileName.c_str(), Err, - llvm::raw_fd_ostream::F_Binary | - llvm::raw_fd_ostream::F_Force); + llvm::raw_fd_ostream::F_Binary); OwnedStream.reset(OutFile); } else if (InFileName == "-") { OutFile = &llvm::outs(); @@ -58,8 +57,7 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName, Path.appendSuffix("fixit." + Suffix); std::string Err; OutFile = new llvm::raw_fd_ostream(Path.c_str(), Err, - llvm::raw_fd_ostream::F_Binary | - llvm::raw_fd_ostream::F_Force); + llvm::raw_fd_ostream::F_Binary); OwnedStream.reset(OutFile); } |