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 | 81ded6951180caf4bccaef638f31fabcfab0627d (patch) | |
| tree | f5b732bb64c692b7acb1aad792f90e4a677902c3 /clang/lib/AST | |
| parent | 5e16a0d9e7cffb3b96f3f84d2887100e22cbd020 (diff) | |
| download | bcm5719-llvm-81ded6951180caf4bccaef638f31fabcfab0627d.tar.gz bcm5719-llvm-81ded6951180caf4bccaef638f31fabcfab0627d.zip | |
Remove -fobjc-tight-layout, seems to work!
llvm-svn: 71184
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 3b1a11cb795..4aed59f37e8 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/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); |

