summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FixItRewriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 02:59:41 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 02:59:41 +0000
commit84cffc22d413e026cb3cb5b814578c6c55f4ff78 (patch)
treef6aed39b28ec5b16c79292445d2ddeaa292b18bf /clang/lib/Frontend/FixItRewriter.cpp
parentabd1736998c99a04355d9a27a6bd5622654986b0 (diff)
downloadbcm5719-llvm-84cffc22d413e026cb3cb5b814578c6c55f4ff78.tar.gz
bcm5719-llvm-84cffc22d413e026cb3cb5b814578c6c55f4ff78.zip
adjust for raw_fd_ostream api change.
llvm-svn: 79809
Diffstat (limited to 'clang/lib/Frontend/FixItRewriter.cpp')
-rw-r--r--clang/lib/Frontend/FixItRewriter.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/clang/lib/Frontend/FixItRewriter.cpp b/clang/lib/Frontend/FixItRewriter.cpp
index 399ad1c2cd7..317693323f9 100644
--- a/clang/lib/Frontend/FixItRewriter.cpp
+++ b/clang/lib/Frontend/FixItRewriter.cpp
@@ -44,11 +44,9 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName,
llvm::raw_ostream *OutFile;
if (!OutFileName.empty()) {
std::string Err;
- OutFile = new llvm::raw_fd_ostream(OutFileName.c_str(),
- // set binary mode (critical for Windoze)
- true,
- /*Force=*/true,
- Err);
+ OutFile = new llvm::raw_fd_ostream(OutFileName.c_str(), Err,
+ llvm::raw_fd_ostream::F_Binary |
+ llvm::raw_fd_ostream::F_Force);
OwnedStream.reset(OutFile);
} else if (InFileName == "-") {
OutFile = &llvm::outs();
@@ -58,11 +56,9 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName,
Path.eraseSuffix();
Path.appendSuffix("fixit." + Suffix);
std::string Err;
- OutFile = new llvm::raw_fd_ostream(Path.toString().c_str(),
- // set binary mode (critical for Windoze)
- true,
- /*Force=*/true,
- Err);
+ OutFile = new llvm::raw_fd_ostream(Path.toString().c_str(), Err,
+ llvm::raw_fd_ostream::F_Binary |
+ llvm::raw_fd_ostream::F_Force);
OwnedStream.reset(OutFile);
}
OpenPOWER on IntegriCloud