about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-02 14:13:27 -0700
committerGitHub <noreply@github.com>2016-10-02 14:13:27 -0700
commit1cdc0fb11af12c04fb4b1984615f03b11a60decc (patch)
tree55c8503c29f9ec44d30c9ecda8c65d78b4672f30 /src/rustllvm/RustWrapper.cpp
parent8991ffc3031b4e787f9216caa12aa556f5ede8ed (diff)
parent9482bce56e9b56b91ec6c6af92eb660961ce8734 (diff)
downloadrust-1cdc0fb11af12c04fb4b1984615f03b11a60decc.tar.gz
rust-1cdc0fb11af12c04fb4b1984615f03b11a60decc.zip
Auto merge of #36904 - camlorn:field_offsets_refactor, r=eddyb
Refactor layout to store offsets of fields, not offsets after fields

This is the next PR moving us towards being able to reorder struct fields.

The old code implicitly stored the offset of the first field.  This is inadequate because the first field may no longer be offset 0 in future.  This PR refactors `layout` to use a `offsets` vector instead of a `offset_after_field` vector.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions