about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorCameron Hart <cameron.hart@gmail.com>2017-01-15 09:49:29 +1100
committerCameron Hart <cameron.hart@gmail.com>2017-04-21 07:32:32 +1000
commit4358e35fda66ab7a00215c7f9d50e7c6dc9b801b (patch)
treea25741bc07d2a01d06a99d2135a776c61d42e3d5 /src/test/incremental/thinlto
parentddc5d7bd4b9ea3e8a8ccf82cb443e950be311d61 (diff)
downloadrust-4358e35fda66ab7a00215c7f9d50e7c6dc9b801b.tar.gz
rust-4358e35fda66ab7a00215c7f9d50e7c6dc9b801b.zip
Implementation of repr struct alignment RFC 1358.
The main changes around rustc::ty::Layout::struct and rustc_trans:adt:
* Added primitive_align field which stores alignment before repr align
* Always emit field padding when generating the LLVM struct fields
* Added methods for adjusting field indexes from the layout index to the
  LLVM struct field index

The main user of this information is rustc_trans::adt::struct_llfields
which determines the LLVM fields to be used by LLVM, including padding
fields.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions