llgo/ssa,runtime: Slice
This commit is contained in:
@@ -104,6 +104,10 @@ type aType struct {
|
||||
|
||||
type Type = *aType
|
||||
|
||||
func (p Program) Slice(typ Type) Type {
|
||||
return p.Type(types.NewSlice(typ.t))
|
||||
}
|
||||
|
||||
func (p Program) Pointer(typ Type) Type {
|
||||
return p.Type(types.NewPointer(typ.t))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user