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 | 711665c30982cdfb720bf361e0548715c49d3bf6 (patch) | |
tree | fe4ed93e53fd83248c2309de6aaab3a92c85648b /clang/lib/CodeGen | |
parent | a2eaffc747184d42ca8ea984877f2e990e25360c (diff) | |
download | bcm5719-llvm-711665c30982cdfb720bf361e0548715c49d3bf6.tar.gz bcm5719-llvm-711665c30982cdfb720bf361e0548715c49d3bf6.zip |
Add FIXME to CodeGen struct layout.
llvm-svn: 51764
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp index ec4f6df2b4d..1e795acd514 100644 --- a/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/clang/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(); |