llgen: support go.mod

This commit is contained in:
xushiwei
2024-04-22 21:03:06 +08:00
parent ead09d94aa
commit 92b7d61b55
5 changed files with 65 additions and 11 deletions

View File

@@ -36,5 +36,5 @@ func main() {
outFile := dir + "out.ll"
llgen.Init()
llgen.Do(inFile, outFile)
llgen.Do(llgen.PkgPath(dir), inFile, outFile)
}