aboutsummaryrefslogtreecommitdiff
path: root/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
commit92bcc27ada5788c5f5057fa051b2600ec27c7e17 (patch)
tree28d91d27b87af4f2f0e4fc90e2bf69f61cbffb3c /lib/Frontend/FixItRewriter.cpp
parent70d488e6d0d3127aa53bee57ab9e746943ed47c3 (diff)
adjust for raw_fd_ostream api change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FixItRewriter.cpp')
-rw-r--r--lib/Frontend/FixItRewriter.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/Frontend/FixItRewriter.cpp b/lib/Frontend/FixItRewriter.cpp
index 399ad1c2cd..317693323f 100644
--- a/lib/Frontend/FixItRewriter.cpp
+++ b/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);
}