diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-30 10:29:32 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-30 10:29:32 +0000 |
| commit | e36a3c8b5c7db4916342e4381caa2fdc93eb5745 (patch) | |
| tree | d8c465a0ee5b9c412157a0f3b7b0626bf58c2a82 /lib/CodeGen/CodeGenTypes.cpp | |
| parent | a823400df727968fda4b2df23abab0d8ecff7a75 (diff) | |
| download | clang-e36a3c8b5c7db4916342e4381caa2fdc93eb5745.tar.gz clang-e36a3c8b5c7db4916342e4381caa2fdc93eb5745.tar.bz2 clang-e36a3c8b5c7db4916342e4381caa2fdc93eb5745.tar.xz | |
Add FIXME to CodeGen struct layout.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index ec4f6df2b4..1e795acd51 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -479,8 +479,12 @@ CodeGenTypes::getCGRecordLayout(const TagDecl *TD) const { /// the layout built by the AST. (We have to do struct layout to do Sema, /// and there's no point to duplicating the work.) void RecordOrganizer::layoutStructFields(const ASTRecordLayout &RL) { - // FIXME : Use SmallVector + // FIXME: This code currently always generates packed structures. + // Unpacked structures are more readable, and sometimes more efficient! + // (But note that any changes here are likely to impact CGExprConstant, + // which makes some messy assumptions.) uint64_t llvmSize = 0; + // FIXME: Make this a SmallVector std::vector<const llvm::Type*> LLVMFields; int NumMembers = RD.getNumMembers(); |
