Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
366200045fc30290795e037ab2cb417ddd3c9933
/
lib
/
CodeGen
/
CGRecordLayoutBuilder.cpp
3662000
If the alignment of the chosen field in a union is greater than the alignment of the union, we need to use a packed LLVM struct. Fixes <rdar://problem/7184250>.
by Anders Carlsson
· 15 years ago
d0eb3b9
Packed unions should be packed. Fixes an assert Daniel reported.
by Anders Carlsson
· 15 years ago
fc3eaa4
More work towards zero-initializing structs that contain member pointers in constant expressions.
by Anders Carlsson
· 15 years ago
341bdf8
Remove the PaddingFields member from CGRecordLayout, it wasn't used anyway.
by Anders Carlsson
· 15 years ago
0032b27
Update for LLVM API change.
by Owen Anderson
· 15 years ago
a5dd722
Take #pragma pack into account when laying out structs. Fixes rdar://problem/7095436.
by Anders Carlsson
· 15 years ago
a860e75
Introduce a new PragmaPack attribute, and use it for #pragma pack. The PackedAttr now only represents __attribute__((packed)).
by Anders Carlsson
· 15 years ago
df31e09
Assert that the LLVM type has the same size as the RecordDecl size.
by Anders Carlsson
· 15 years ago
47a434f
Update for LLVM API change.
by Owen Anderson
· 15 years ago
de9f2c9
Simplify alignment handling in the record builder.
by Anders Carlsson
· 15 years ago
8a8a629
No longer need to keep base class offsets in the offset
by Fariborz Jahanian
· 15 years ago
c2cc1d5
More CGRecordLayoutBuilder cleanup.
by Anders Carlsson
· 15 years ago
cad8665
Some minor changes toward support of data
by Fariborz Jahanian
· 15 years ago
abdad35
Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well.
by Anders Carlsson
· 15 years ago
c1efe36
Fix a tail padding bug in the record layout builder code. The bug was found by an existing test.
by Anders Carlsson
· 15 years ago
4c98efd
Check in a half finished new constant struct builder (Obviously not used yet).
by Anders Carlsson
· 15 years ago
728d7cd
Get rid of the size parameter to AppendField. No functionality change.
by Anders Carlsson
· 15 years ago
94ae95f
Don't just store the field/bit field info one field, do it for all fields in the union.
by Anders Carlsson
· 15 years ago
177d4d8
Fix another thinko.
by Anders Carlsson
· 15 years ago
faaec22
Correct a thinko in bitfield layout code. Fixes PR4611.
by Anders Carlsson
· 15 years ago
4b5584b
We don't need to keep track of the packed alignment, just whether the struct is packed or not. Fixes PR4610.
by Anders Carlsson
· 15 years ago
8330cee
Move the LLVM field number for bit fields into the BitFieldInfo structure, since it's meaning is completely different than for non-bit fields.
by Anders Carlsson
· 15 years ago
cfc6758
Set field info for unions.
by Anders Carlsson
· 15 years ago
2cc8f17
Handle zero width bit fields in unions correctly (by ignoring them).
by Anders Carlsson
· 15 years ago
5a6e398
Implement union layout support.
by Anders Carlsson
· 15 years ago
45372a6
Check in CGRecordLayoutBuilder which is a reimplementation of the record layout code. (Yay, no more packed structs unless absolutely necessary). We currently don't use the layouts being built but that will change when the new code is mature enough :)
by Anders Carlsson
· 15 years ago