aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenTypes.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-11-07 21:04:59 +0000
committerDevang Patel <dpatel@apple.com>2007-11-07 21:04:59 +0000
commitb70a88e67491d41877aab3a56947866e70435d64 (patch)
tree6ca8ccb3c5f97ad5a26aaee484d82abd727f9f30 /CodeGen/CodeGenTypes.cpp
parent1c93c4e27ba6fb103fbd306215678a4610c51f61 (diff)
Stay within 80 columns.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenTypes.cpp')
-rw-r--r--CodeGen/CodeGenTypes.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/CodeGen/CodeGenTypes.cpp b/CodeGen/CodeGenTypes.cpp
index 168c6196f1..67ad50d4d2 100644
--- a/CodeGen/CodeGenTypes.cpp
+++ b/CodeGen/CodeGenTypes.cpp
@@ -44,8 +44,8 @@ namespace {
const FieldDecl *FD = NULL, unsigned Begin = 0,
unsigned End = 0);
- /// addPaddingFields - Current cursor is not suitable place to add next field.
- /// Add required padding fields.
+ /// addPaddingFields - Current cursor is not suitable place to add next
+ /// field. Add required padding fields.
void addPaddingFields(unsigned RequiredBits);
/// layoutStructFields - Do the actual work and lay out all fields. Create
@@ -263,7 +263,8 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
RecordOrganizer RO(*this);
for (unsigned i = 0, e = RD->getNumMembers(); i != e; ++i)
RO.addField(RD->getMember(i));
- const ASTRecordLayout &RL = Context.getASTRecordLayout(RD, SourceLocation());
+ const ASTRecordLayout &RL = Context.getASTRecordLayout(RD,
+ SourceLocation());
RO.layoutStructFields(RL);
// Get llvm::StructType.
@@ -424,8 +425,8 @@ void RecordOrganizer::addPaddingFields(unsigned RequiredBits) {
CGT.getTargetData().getTypeSizeInBits(llvm::Type::Int8Ty));
}
-/// addLLVMField - Add llvm struct field that corresponds to llvm type Ty. Update
-/// cursor and increment field count. If field decl FD is available than update
+/// addLLVMField - Add llvm struct field that corresponds to llvm type Ty.
+/// Update cursor and increment field count. If field decl FD is available than
/// update field info at CodeGenTypes level.
void RecordOrganizer::addLLVMField(const llvm::Type *Ty, uint64_t Size,
const FieldDecl *FD, unsigned Begin,