github.com/goplus/llgo/internal/packages; prog.TypeSizes: todo

This commit is contained in:
xushiwei
2024-05-28 12:22:43 +08:00
parent 550889808a
commit 3da1aa3ec6
5 changed files with 162 additions and 10 deletions

View File

@@ -91,6 +91,11 @@ func (t Type) RawType() types.Type {
return t.raw.Type
}
// TypeSizes returns the sizes of the types.
func (p Program) TypeSizes() types.Sizes {
return nil // TODO(xsw)
}
// TODO(xsw):
// how to generate platform independent code?
func (p Program) SizeOf(typ Type, n ...int64) uint64 {