From: Daniel Dunbar Date: Tue, 21 Apr 2009 01:18:01 +0000 (+0000) Subject: Kill ASTContext::[gs]etFieldForDecl, instead we just lookup things X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51a1d9543d65c9864793911c3200a506562f4161;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69646 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenObjC/bitfield-ivar-offsets.m b/test/CodeGenObjC/bitfield-ivar-offsets.m index 23a09a3a15..c97b54f5db 100644 --- a/test/CodeGenObjC/bitfield-ivar-offsets.m +++ b/test/CodeGenObjC/bitfield-ivar-offsets.m @@ -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 +@interface I1 : I0 { + char _c0:4; + char _c1:5; + char _c2:2; +} +@end + @implementation I0 @end + +@implementation I1 +@end