diff options
author | Anders Carlsson <andersca@mac.com> | 2009-07-27 14:55:54 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-07-27 14:55:54 +0000 |
commit | c1efe36ca75b4f4f82cdec464bab5693ed0d6058 (patch) | |
tree | 557a28dbe950b328487982995de18a21bcbcc1ca /lib/CodeGen/CGRecordLayoutBuilder.h | |
parent | 8dca3b3d09ff48b3ec528cd603f835f120c4d9ee (diff) |
Fix a tail padding bug in the record layout builder code. The bug was found by an existing test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRecordLayoutBuilder.h')
-rw-r--r-- | lib/CodeGen/CGRecordLayoutBuilder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGRecordLayoutBuilder.h b/lib/CodeGen/CGRecordLayoutBuilder.h index b9387856d1..f236881b5e 100644 --- a/lib/CodeGen/CGRecordLayoutBuilder.h +++ b/lib/CodeGen/CGRecordLayoutBuilder.h @@ -111,6 +111,10 @@ class CGRecordLayoutBuilder { /// AppendBytes - Append a given number of bytes to the record. void AppendBytes(uint64_t NumBytes); + /// AppendTailPadding - Append enough tail padding so that the type will have + /// the passed size. + void AppendTailPadding(uint64_t RecordSize); + /// getNextFieldOffsetInBytes - returns where the next field offset is. uint64_t getNextFieldOffsetInBytes() const; |