llgo/ssa: RunDefers

This commit is contained in:
xushiwei
2024-06-02 15:24:42 +08:00
parent 5a5929048d
commit ba45217756
7 changed files with 303 additions and 29 deletions

View File

@@ -254,11 +254,6 @@ func (p Function) Name() string {
return p.impl.Name()
}
// DeferFuncName returns the name of the defer procedure.
func (p Function) DeferFuncName() string {
return p.Name() + "._llgo_defer"
}
// Params returns the function's ith parameter.
func (p Function) Param(i int) Expr {
i += p.base // skip if hasFreeVars