diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-05-07 21:58:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-07 21:58:26 +0000 |
commit | 913af35741b55fe854bc26c9dddc312cd991e24d (patch) | |
tree | 3771ceb68697f9aaf308c99703ea52abc6f597a5 /lib/AST/ASTContext.cpp | |
parent | 7bc8d964405ce3b0b95091cdb66a391e50275b3c (diff) |
Remove -fobjc-tight-layout, seems to work!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 3b1a11cb79..4aed59f37e 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -715,13 +715,10 @@ ASTContext::getObjCLayout(const ObjCInterfaceDecl *D, 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); |