summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FixItRewriter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-15 17:32:18 +0000
committerDan Gohman <gohman@apple.com>2009-07-15 17:32:18 +0000
commit74e3eb49eaa394cb7decdbd7ecf40c2a632ab396 (patch)
tree2c7c18bd915b6be7a584d5fa1ccd1d9f8d3a0f04 /clang/lib/Frontend/FixItRewriter.cpp
parent607818a2c17267f5c49745fe987ec6a43145b059 (diff)
downloadbcm5719-llvm-74e3eb49eaa394cb7decdbd7ecf40c2a632ab396.tar.gz
bcm5719-llvm-74e3eb49eaa394cb7decdbd7ecf40c2a632ab396.zip
Update for raw_fd_ostream API changes. raw_fd_ostream now has a
Force flag to control whether the case of opening an existing file is considered an error. llvm-svn: 75802
Diffstat (limited to 'clang/lib/Frontend/FixItRewriter.cpp')
-rw-r--r--clang/lib/Frontend/FixItRewriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FixItRewriter.cpp b/clang/lib/Frontend/FixItRewriter.cpp
index 1ed89d75a9c..cd7cee0f684 100644
--- a/clang/lib/Frontend/FixItRewriter.cpp
+++ b/clang/lib/Frontend/FixItRewriter.cpp
@@ -47,6 +47,7 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName,
OutFile = new llvm::raw_fd_ostream(OutFileName.c_str(),
// set binary mode (critical for Windoze)
true,
+ /*Force=*/true,
Err);
OwnedStream.reset(OutFile);
} else if (InFileName == "-") {
@@ -60,6 +61,7 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName,
OutFile = new llvm::raw_fd_ostream(Path.toString().c_str(),
// set binary mode (critical for Windoze)
true,
+ /*Force=*/true,
Err);
OwnedStream.reset(OutFile);
}
OpenPOWER on IntegriCloud