compiler: split LLGO_DEBUG into LLGO_DEBUG, LLGO_DBG_SYMBOLS, disableInline

This commit is contained in:
Li Jie
2025-02-22 09:31:41 +08:00
parent 9f38338c58
commit 8cd5924bf2
7 changed files with 45 additions and 27 deletions

View File

@@ -348,7 +348,7 @@ func (p *context) funcOf(fn *ssa.Function) (aFn llssa.Function, pyFn llssa.PyObj
}
sig := fn.Signature
aFn = pkg.NewFuncEx(name, sig, llssa.Background(ftype), false, fn.Origin() != nil)
if debugSymbols {
if disableInline {
aFn.Inline(llssa.NoInline)
}
}