llgo/ssa: phi refactor
This commit is contained in:
16
cl/_testgo/abiname/in.go
Normal file
16
cl/_testgo/abiname/in.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import "github.com/goplus/llgo/internal/abi"
|
||||
|
||||
// NewPkgName creates a package name.
|
||||
func NewPkgName(pkgPath string) (ret abi.Name) {
|
||||
if len(pkgPath) > 0 {
|
||||
ret = abi.NewName(pkgPath, "", false, false)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func main() {
|
||||
n := NewPkgName("pkgPath")
|
||||
println(n.Name(), n.Tag(), n.IsExported(), n.IsEmbedded(), n.IsBlank())
|
||||
}
|
||||
Reference in New Issue
Block a user