From: NAKAMURA Takumi Date: Wed, 17 Jul 2013 02:21:10 +0000 (+0000) Subject: raw_ostream.cpp: Introduce to let O_BINARY provided. Or, llvm::outs() would... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f7e73accb7abe472a1febc38888133df6149cfed;p=oota-llvm.git raw_ostream.cpp: Introduce to let O_BINARY provided. Or, llvm::outs() would be set to O_TEXT by default. llvm/test/Object/check_binary_output.ll is expected to pass on win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186480 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 3e5ce04d755..92fa8b50a15 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -27,6 +27,11 @@ #include #include +// may provide O_BINARY. +#if defined(HAVE_FCNTL_H) +# include +#endif + #if defined(HAVE_UNISTD_H) # include #endif diff --git a/test/Object/check_binary_output.ll b/test/Object/check_binary_output.ll index 02b52a3601c..567f18e65ba 100644 --- a/test/Object/check_binary_output.ll +++ b/test/Object/check_binary_output.ll @@ -1,7 +1,4 @@ ; This is not an assembly file, this is just to run the test. ; The test verifies that llvm-ar produces a binary output. -; FIXME: They malform LF into CRLF. Investigating. -; XFAIL: mingw32,win32 - ;RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/Inputs/very_long_bytecode_file_name.bc -