diff options
| author | Adrian Prantl <aprantl@apple.com> | 2017-10-10 23:54:21 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2017-10-10 23:54:21 +0000 |
| commit | f3d9b488bd1edff0e36e8ca840307df79e3af3f8 (patch) | |
| tree | 6a5bffee935335b8c796deafbd677cf39736c8bb /llvm/test/lit.cfg.py | |
| parent | fdf9bf4f16739daa62fa8d9177b1c3a8346728ae (diff) | |
| download | bcm5719-llvm-f3d9b488bd1edff0e36e8ca840307df79e3af3f8.tar.gz bcm5719-llvm-f3d9b488bd1edff0e36e8ca840307df79e3af3f8.zip | |
Include getting generated struct offsets in CodegenABITypes
This change adds a new function, CodeGen::getFieldNumber, that
enables a user of clang's code generation to get the field number
in a generated LLVM IR struct that corresponds to a particular field
in a C struct.
It is important to expose this information in Clang's code generation
interface because there is no reasonable way for users of Clang's code
generation to get this information. In particular:
LLVM struct types do not include field names.
Clang adds a non-trivial amount of logic to the code generation of LLVM IR types for structs, in particular to handle padding and bit fields.
Patch by Michael Ferguson!
Differential Revision: https://reviews.llvm.org/D38473
llvm-svn: 315392
Diffstat (limited to 'llvm/test/lit.cfg.py')
0 files changed, 0 insertions, 0 deletions

