[cfe-dev] accessibility of codegen headers

Jochen Wilhelmy j.wilhelmy at arcor.de
Sat Jun 19 03:53:12 PDT 2010


> This information should be available at the AST level, because offsetof and sizeof structs needs to be evaluated without codegen.  Take a look at the include/clang/AST/RecordLayout.h header.
>   

It looks that AST/RecordLayout hast info about alignment, field offsets 
and struct size,
but not about field index of the resulting llvm type.
For this I would need a getFieldIndexInIR(unsigned FieldNo) method.

-Jochen




More information about the cfe-dev mailing list