cl: initLinkname support //llgo:link

This commit is contained in:
xushiwei
2024-05-07 15:35:37 +08:00
parent 1038b06510
commit c93fce87da
5 changed files with 62 additions and 33 deletions

View File

@@ -17,6 +17,7 @@
package ssa
import (
"fmt"
"go/token"
"go/types"
"unsafe"
@@ -100,7 +101,7 @@ func (p goTypes) cvtType(typ types.Type) (raw types.Type, cvt bool) {
return types.NewChan(t.Dir(), elem), true
}
default:
panic("unreachable")
panic(fmt.Sprintf("cvtType: unexpected type - %T", typ))
}
return typ, false
}