unsigned ObjC1 : 1; // Objective-C 1 support enabled.
unsigned ObjC2 : 1; // Objective-C 2 support enabled.
unsigned ObjCNonFragileABI : 1; // Objective-C modern abi enabled
- unsigned ObjCTightLayout : 1; // Use tight interface layout, in
- // which subclass ivars can be
- // placed inside the superclass.
unsigned PascalStrings : 1; // Allow Pascal strings
unsigned WritableStrings : 1; // Allow writable strings
Trigraphs = BCPLComment = DollarIdents = AsmPreprocessor = 0;
GNUMode = ImplicitInt = Digraphs = 0;
HexFloats = 0;
- GC = ObjC1 = ObjC2 = ObjCNonFragileABI = ObjCTightLayout = 0;
+ GC = ObjC1 = ObjC2 = ObjCNonFragileABI = 0;
C99 = Microsoft = CPlusPlus = CPlusPlus0x = 0;
CXXOperatorNames = PascalStrings = WritableStrings = 0;
Exceptions = NeXTRuntime = Freestanding = NoBuiltin = 0;
if (ObjCInterfaceDecl *SD = D->getSuperClass()) {
const ASTRecordLayout &SL = getASTObjCInterfaceLayout(SD);
unsigned Alignment = SL.getAlignment();
- uint64_t Size = SL.getSize();
- // If we are using tight interface packing, then we start laying
- // out ivars not at the end of the superclass structure, but at
- // the next byte following the last field.
- if (getLangOptions().ObjCTightLayout)
- Size = llvm::RoundUpToAlignment(SL.NextOffset, 8);
+ // We start laying out ivars not at the end of the superclass
+ // structure, but at the next byte following the last field.
+ uint64_t Size = llvm::RoundUpToAlignment(SL.NextOffset, 8);
ObjCLayouts[Key] = NewEntry = new ASTRecordLayout(Size, Alignment);
NewEntry->InitializeLayout(FieldCount);
-// RUN: clang-cc -fobjc-tight-layout -triple x86_64-apple-darwin9 -emit-llvm -o %t %s &&
+// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o %t %s &&
// RUNX: llvm-gcc -m64 -emit-llvm -S -o %t %s &&
// RUN: grep '@"OBJC_IVAR_$_I3._iv2" = global i64 8, section "__DATA, __objc_const", align 8' %t &&
llvm::cl::desc("enable objective-c's nonfragile abi"));
-static llvm::cl::opt<bool>
-ObjCTightLayout("fobjc-tight-layout",
- llvm::cl::desc("enable tight objective-c interface layout"));
-
static llvm::cl::opt<bool>
EmitAllDecls("femit-all-decls",
llvm::cl::desc("Emit all declarations, even if unused"));
if (ObjCNonFragileABI)
Options.ObjCNonFragileABI = 1;
- Options.ObjCTightLayout = 1;
-
if (EmitAllDecls)
Options.EmitAllDecls = 1;