llpyg fix: empty params
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
; ModuleID = 'math'
|
||||
source_filename = "math"
|
||||
|
||||
@__llgo_py.math.sqrt = external global ptr
|
||||
@"math.init$guard" = global ptr null
|
||||
@__llgo_py.math = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [5 x i8] c"math\00", align 1
|
||||
|
||||
@@ -214,11 +214,14 @@ var (
|
||||
func (p *context) compileFuncDecl(pkg llssa.Package, f *ssa.Function, call bool) (llssa.Function, llssa.PyObjRef, int) {
|
||||
pkgTypes, name, ftype := p.funcName(f, true)
|
||||
if ftype != goFunc {
|
||||
if ftype == pyFunc {
|
||||
// TODO(xsw): pyMod == ""
|
||||
fnName := pysymPrefix + p.pyMod + "." + name
|
||||
return nil, pkg.NewPyFunc(fnName, f.Signature, call), pyFunc
|
||||
}
|
||||
/*
|
||||
if ftype == pyFunc {
|
||||
// TODO(xsw): pyMod == ""
|
||||
fnName := pysymPrefix + p.pyMod + "." + name
|
||||
return nil, pkg.NewPyFunc(fnName, f.Signature, call), pyFunc
|
||||
}
|
||||
*/
|
||||
_ = call
|
||||
return nil, nil, ignoredFunc
|
||||
}
|
||||
fn := pkg.FuncOf(name)
|
||||
|
||||
Reference in New Issue
Block a user