summaryrefslogtreecommitdiff
path: root/lib/Frontend/HeaderIncludeGen.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-24 18:20:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-24 18:20:21 +0000
commit2018c6b469782d55afc0eadf7e4c79307b164698 (patch)
tree9b027fc83eb9c46433e7129e722945c7fa141e6f /lib/Frontend/HeaderIncludeGen.cpp
parent80a484953ce80b4e062733594c0c66a8dc5096fa (diff)
downloadclang-2018c6b469782d55afc0eadf7e4c79307b164698.tar.gz
Update for llvm api change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/HeaderIncludeGen.cpp')
-rw-r--r--lib/Frontend/HeaderIncludeGen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/HeaderIncludeGen.cpp b/lib/Frontend/HeaderIncludeGen.cpp
index 237e5b1ac0..00ff63746c 100644
--- a/lib/Frontend/HeaderIncludeGen.cpp
+++ b/lib/Frontend/HeaderIncludeGen.cpp
@@ -56,7 +56,8 @@ void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders,
if (!OutputPath.empty()) {
std::string Error;
llvm::raw_fd_ostream *OS = new llvm::raw_fd_ostream(
- OutputPath.str().c_str(), Error, llvm::sys::fs::F_Append);
+ OutputPath.str().c_str(), Error,
+ llvm::sys::fs::F_Append | llvm::sys::fs::F_Text);
if (!Error.empty()) {
PP.getDiagnostics().Report(
clang::diag::warn_fe_cc_print_header_failure) << Error;