testFrom: use test.Diff

This commit is contained in:
xushiwei
2025-06-23 21:14:26 +08:00
parent 3d53b12dea
commit b7b6e3bc93
5 changed files with 12 additions and 17 deletions

View File

@@ -213,15 +213,8 @@ func isCgoVar(name string) bool {
}
func (p *context) compileFuncDecl(pkg llssa.Package, f *ssa.Function) (llssa.Function, llssa.PyObjRef, int) {
pkgTypes, name, ftype := p.funcName(f, true)
pkgTypes, name, ftype := p.funcName(f)
if ftype != goFunc {
/*
if ftype == pyFunc {
// TODO(xsw): pyMod == ""
fnName := pysymPrefix + p.pyMod + "." + name
return nil, pkg.NewPyFunc(fnName, f.Signature, call), pyFunc
}
*/
return nil, nil, ignoredFunc
}
sig := f.Signature