cl: _testcgo/strlen - todo

This commit is contained in:
xushiwei
2024-04-26 02:05:49 +08:00
parent 28dd34a136
commit 43ae7a23b2
8 changed files with 95 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ import (
func main() {
if len(os.Args) < 2 {
fmt.Fprintln(os.Stderr, "Usage: llgen xxx.go [pkgPath]")
fmt.Fprintln(os.Stderr, "Usage: llgen xxx.go")
return
}
@@ -35,13 +35,6 @@ func main() {
dir, _ := filepath.Split(inFile)
outFile := dir + "out.ll"
pkgPath := ""
if len(os.Args) == 3 {
pkgPath = os.Args[2]
} else {
pkgPath = llgen.PkgPath(dir)
}
llgen.Init()
llgen.Do(pkgPath, inFile, outFile)
llgen.DoFile(inFile, outFile)
}