diff options
author | John McCall <rjmccall@apple.com> | 2010-08-22 21:01:12 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-22 21:01:12 +0000 |
commit | 614dbdcd55c757048f2529cce13bdb3db1411dae (patch) | |
tree | 002f31fb40834333ddcb36c382a8629d7eb4bdbb /clang/test/CodeGen | |
parent | 0b84914da069ac4637e234eeddd256716af03228 (diff) | |
download | bcm5719-llvm-614dbdcd55c757048f2529cce13bdb3db1411dae.tar.gz bcm5719-llvm-614dbdcd55c757048f2529cce13bdb3db1411dae.zip |
Go back to asking CodeGenTypes whether a type is zero-initializable.
Make CGT defer to the ABI on all member pointer types.
This requires giving CGT a handle to the ABI.
It's way easier to make that work if we avoid lazily creating the ABI.
Make it so.
llvm-svn: 111786
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r-- | clang/test/CodeGen/bitfield-2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGen/bitfield-2.c b/clang/test/CodeGen/bitfield-2.c index e91859fb728..8de432faa8a 100644 --- a/clang/test/CodeGen/bitfield-2.c +++ b/clang/test/CodeGen/bitfield-2.c @@ -12,7 +12,7 @@ // CHECK-RECORD: Record: struct s0 // CHECK-RECORD: Layout: <CGRecordLayout // CHECK-RECORD: LLVMType:<{ [3 x i8] }> -// CHECK-RECORD: ContainsPointerToDataMember:0 +// CHECK-RECORD: IsZeroInitializable:1 // CHECK-RECORD: BitFields:[ // CHECK-RECORD: <CGBitFieldInfo Size:24 IsSigned:1 // CHECK-RECORD: NumComponents:2 Components: [ @@ -57,7 +57,7 @@ unsigned long long test_0() { // CHECK-RECORD: Record: struct s1 // CHECK-RECORD: Layout: <CGRecordLayout // CHECK-RECORD: LLVMType:<{ [2 x i8], i8 }> -// CHECK-RECORD: ContainsPointerToDataMember:0 +// CHECK-RECORD: IsZeroInitializable:1 // CHECK-RECORD: BitFields:[ // CHECK-RECORD: <CGBitFieldInfo Size:10 IsSigned:1 // CHECK-RECORD: NumComponents:1 Components: [ @@ -114,7 +114,7 @@ unsigned long long test_1() { // CHECK-RECORD: Record: union u2 // CHECK-RECORD: Layout: <CGRecordLayout // CHECK-RECORD: LLVMType:<{ i8 }> -// CHECK-RECORD: ContainsPointerToDataMember:0 +// CHECK-RECORD: IsZeroInitializable:1 // CHECK-RECORD: BitFields:[ // CHECK-RECORD: <CGBitFieldInfo Size:3 IsSigned:0 // CHECK-RECORD: NumComponents:1 Components: [ @@ -289,7 +289,7 @@ _Bool test_6() { // CHECK-RECORD: Record: struct s7 // CHECK-RECORD: Layout: <CGRecordLayout // CHECK-RECORD: LLVMType:{ i32, i32, i32, i8, [3 x i8], [4 x i8], [12 x i8] } -// CHECK-RECORD: ContainsPointerToDataMember:0 +// CHECK-RECORD: IsZeroInitializable:1 // CHECK-RECORD: BitFields:[ // CHECK-RECORD: <CGBitFieldInfo Size:5 IsSigned:1 // CHECK-RECORD: NumComponents:1 Components: [ |