aboutsummaryrefslogtreecommitdiff
path: root/Driver/SerializationTest.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-11-13 05:09:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-11-13 05:09:21 +0000
commit26fb272713809af97e6f58ca61b8b9dcba37afc7 (patch)
tree1431479afaaa1d3fc2e63c18cc0c28ab75a5211b /Driver/SerializationTest.cpp
parent76dba7b67a36b2d6311e4ad4714df5dbd39dbebe (diff)
[LLVM up] Update for raw_fd_ostream change. This fixes a FIXME that
the Backend output should be done in binary mode. - I'd appreciate it if someone who has a Windows build could verify this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/SerializationTest.cpp')
-rw-r--r--Driver/SerializationTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/SerializationTest.cpp b/Driver/SerializationTest.cpp
index 9f93479912..e489a19ff8 100644
--- a/Driver/SerializationTest.cpp
+++ b/Driver/SerializationTest.cpp
@@ -65,7 +65,7 @@ bool SerializationTest::Serialize(llvm::sys::Path& Filename,
{
// Pretty-print the decls to a temp file.
std::string Err;
- llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), Err);
+ llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), true, Err);
assert (Err.empty() && "Could not open file for printing out decls.");
llvm::OwningPtr<ASTConsumer> FilePrinter(CreateASTPrinter(&DeclPP));
@@ -89,7 +89,7 @@ bool SerializationTest::Deserialize(llvm::sys::Path& Filename,
{
// Pretty-print the deserialized decls to a temp file.
std::string Err;
- llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), Err);
+ llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), true, Err);
assert (Err.empty() && "Could not open file for printing out decls.");
llvm::OwningPtr<ASTConsumer> FilePrinter(CreateASTPrinter(&DeclPP));