cl.NewPackage: rm fset *token.FileSet

This commit is contained in:
xushiwei
2024-04-22 20:23:01 +08:00
parent 72084b5648
commit ead09d94aa
4 changed files with 6 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ func Gen(inFile string, src any) string {
ssaPkg.WriteTo(os.Stderr)
prog := llssa.NewProgram(nil)
ret, err := cl.NewPackage(prog, fset, ssaPkg, files)
ret, err := cl.NewPackage(prog, ssaPkg, files)
check(err)
return ret.String()