File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10
- refs/heads/dist-snap: 9618e5b459198865ab70ba7cf3a3edffdef1f7f5
10
+ refs/heads/dist-snap: d3a58f37979496efdf15bf016ebccc17b007a6cc
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use driver:: session:: os_win32;
11
+ use driver:: session:: { os_win32, os_macos } ;
12
12
use core:: option:: * ;
13
13
use lib:: llvm:: * ;
14
14
use lib:: llvm:: llvm:: * ;
@@ -38,12 +38,12 @@ impl ABIInfo for X86_ABIInfo {
38
38
39
39
// Rules for returning structs taken from
40
40
// http://www.angelcode.com/dev/callconv/callconv.html
41
+ // Clang's ABI handling is in lib/CodeGen/TargetInfo.cpp
41
42
let sret = {
42
43
let returning_a_struct = unsafe { LLVMGetTypeKind ( rty) == Struct && ret_def } ;
43
- let big_struct = if self . ccx . sess . targ_cfg . os != os_win32 {
44
- true
45
- } else {
46
- llsize_of_alloc ( self . ccx , rty) > 8
44
+ let big_struct = match self . ccx . sess . targ_cfg . os {
45
+ os_win32 | os_macos => llsize_of_alloc ( self . ccx , rty) > 8 ,
46
+ _ => true
47
47
} ;
48
48
returning_a_struct && big_struct
49
49
} ;
Original file line number Diff line number Diff line change 11
11
// Test a foreign function that accepts and returns a struct
12
12
// by value.
13
13
14
- // xfail-macos Broken on mac i686
15
-
16
14
#[ deriving( Eq ) ]
17
15
struct TwoU32s {
18
16
one : u32 , two : u32
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // xfail-macos Broken on mac i686
12
-
13
11
struct TwoU32s {
14
12
one : u32 , two : u32
15
13
}
You can’t perform that action at this time.
0 commit comments