diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-18 18:26:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-18 18:26:58 +0000 |
commit | 5d2a6303467184b1f159bb6556efc434e50e3c28 (patch) | |
tree | 16e2d2f5e4e1dac4a6c90c1e4f3eafa7c2649332 /CodeGen/CodeGenTypes.cpp | |
parent | 5e3fbe503a28c790d648091653dc21eeca64ca07 (diff) |
implement sizeof/alignof support for structs, unions and complex.
This allows us to compile this:
struct abc { char A; double D; };
int foo() {
return sizeof(struct abc);
return __alignof__(struct abc);
}
Into:
ret i32 16
ret i32 8
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenTypes.cpp')
0 files changed, 0 insertions, 0 deletions