summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e48edc)
raw | patch | inline | side by side (parent: 8e48edc)
author | Rafael Espindola <rafael.espindola@gmail.com> | |
Fri, 4 Oct 2013 21:40:54 +0000 (21:40 +0000) | ||
committer | Rafael Espindola <rafael.espindola@gmail.com> | |
Fri, 4 Oct 2013 21:40:54 +0000 (21:40 +0000) |
We were writing in text mode.
Patch by Greg Bedwell.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191985 91177308-0d34-0410-b5e6-96231b3b80d8
Patch by Greg Bedwell.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191985 91177308-0d34-0410-b5e6-96231b3b80d8
test/LTO/cfi_endproc.ll | patch | blob | history | |
test/LTO/lit.local.cfg | patch | blob | history | |
tools/llvm-lto/llvm-lto.cpp | patch | blob | history |
index acfaf5a80098159f778d72f0e8d7876fbba63dc5..d8818d226e03db363249bacaa804b6ac81c75b92 100644 (file)
--- a/test/LTO/cfi_endproc.ll
+++ b/test/LTO/cfi_endproc.ll
; RUN: llvm-lto -o %t3 -exported-symbol=main %t1
; RUN: llvm-nm %t3 | FileCheck %s -check-prefix=EXPORT
-; FIXME: we can now build LTO on windows, debug why this fails.
-; XFAIL: win32
-
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
diff --git a/test/LTO/lit.local.cfg b/test/LTO/lit.local.cfg
index f61943a77af95fe5f02dfe6477db44ecc114bb68..7a70736aeac254a450ba5ea6e123144d2c5ead1e 100644 (file)
--- a/test/LTO/lit.local.cfg
+++ b/test/LTO/lit.local.cfg
if not 'X86' in targets:
config.unsupported = True
-if config.root.host_os in ['Cygwin', 'MingW', 'Windows']:
+if config.root.host_os in ['Cygwin']:
config.unsupported = True
index 1d03fa62a870986191b9069162f1ec1e358c5dc9..bce903fa160adf93977e2ce484dee029d30662a9 100644 (file)
return 1;
}
- raw_fd_ostream FileStream(OutputFilename.c_str(), ErrorInfo);
+ raw_fd_ostream FileStream(OutputFilename.c_str(), ErrorInfo,
+ sys::fs::F_Binary);
if (!ErrorInfo.empty()) {
errs() << argv[0] << ": error opening the file '" << OutputFilename
<< "': " << ErrorInfo << "\n";