llgo/ssa: allocaCStr; runtime: String

This commit is contained in:
xushiwei
2024-04-30 18:22:56 +08:00
parent c6cb2931e1
commit ae0906d322
9 changed files with 164 additions and 4 deletions

View File

@@ -29,6 +29,9 @@ func Str(string) *int8
//go:linkname Alloca llgo.alloca
func Alloca(size uintptr) unsafe.Pointer
//go:linkname AllocaCStr llgo.allocaCStr
func AllocaCStr(s string) *int8
//go:linkname Unreachable llgo.unreachable
func Unreachable()