[cfe-commits] r69646 - /cfe/trunk/test/CodeGenObjC/bitfield-ivar-offsets.m

Daniel Dunbar daniel at zuster.org
Mon Apr 20 18:18:02 PDT 2009


Author: ddunbar
Date: Mon Apr 20 20:18:01 2009
New Revision: 69646

URL: http://llvm.org/viewvc/llvm-project?rev=69646&view=rev
Log:
Kill ASTContext::[gs]etFieldForDecl, instead we just lookup things
when we need them -- which is exactly what some code was already
doing!
 - No intended functionality change.

Modified:
    cfe/trunk/test/CodeGenObjC/bitfield-ivar-offsets.m

Modified: cfe/trunk/test/CodeGenObjC/bitfield-ivar-offsets.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/bitfield-ivar-offsets.m?rev=69646&r1=69645&r2=69646&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenObjC/bitfield-ivar-offsets.m (original)
+++ cfe/trunk/test/CodeGenObjC/bitfield-ivar-offsets.m Mon Apr 20 20:18:01 2009
@@ -8,6 +8,9 @@
 // RUN: grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_const", align 8' %t &&
 // RUN: grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_const", align 8' %t &&
 // RUN: grep -F '@"OBJC_IVAR_$_I0." = global' %t | count 0 &&
+// RUN: grep -F '@"OBJC_IVAR_$_I1._c0" = global i64 8, section "__DATA, __objc_const", align 8' %t &&
+// RUN: grep -F '@"OBJC_IVAR_$_I1._c1" = global i64 9, section "__DATA, __objc_const", align 8' %t &&
+// RUN: grep -F '@"OBJC_IVAR_$_I1._c2" = global i64 9, section "__DATA, __objc_const", align 8' %t &&
 // RUN: true
 
 @interface I0 {
@@ -22,5 +25,15 @@
 }
 @end
 
+ at interface I1 : I0 {
+  char _c0:4;
+  char _c1:5;
+  char _c2:2;
+}
+ at end
+
 @implementation I0
 @end
+
+ at implementation I1
+ at end





More information about the cfe-commits mailing list