abi.Name; runtime: MakeAnyInt => MakeAnyIntptr; llgo/ssa: AllocU; builtin unsafe.String; MakeInterface; prog.PointerSize
This commit is contained in:
Binary file not shown.
@@ -34,7 +34,7 @@ var (
|
||||
|
||||
type Interface = iface
|
||||
|
||||
func MakeAnyInt(typ *Type, data uintptr) Interface {
|
||||
func MakeAnyIntptr(typ *Type, data uintptr) Interface {
|
||||
tab := &itab{inter: TyAny, _type: typ, hash: 0, fun: [1]uintptr{0}}
|
||||
return Interface{
|
||||
tab: tab, data: unsafe.Pointer(data),
|
||||
|
||||
@@ -40,6 +40,7 @@ func EmptyString() String {
|
||||
return String{nil, 0}
|
||||
}
|
||||
|
||||
// TODO(xsw): unsafe.String
|
||||
// NewString creates a new string.
|
||||
func NewString(data unsafe.Pointer, len int) String {
|
||||
return String{data, len}
|
||||
|
||||
Reference in New Issue
Block a user