AlignOf returns the alignment of the type in bytes.
(ty Type)
| 491 | |
| 492 | // AlignOf returns the alignment of the type in bytes. |
| 493 | func (m *Module) AlignOf(ty Type) Const { |
| 494 | return m.Scalar(uint64((ty.AlignInBits() + 7) / 8)) |
| 495 | } |
| 496 | |
| 497 | // OffsetOf returns the field offset in bytes. |
| 498 | func (m *Module) OffsetOf(ty *Struct, name string) Const { |
nothing calls this directly
no test coverage detected