Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions compiler/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,7 @@ func LoadModule(raw []byte) (*Module, error) {
}, nil
}

func (m *Module) CompileWithNGen(gp GasPolicy, numGlobals uint64) (string, error) {
var (
out string
retErr error
)

func (m *Module) CompileWithNGen(gp GasPolicy, numGlobals uint64) (out string, retErr error) {
defer utils.CatchPanic(&retErr)

importStubBuilder := &strings.Builder{}
Expand Down Expand Up @@ -203,12 +198,7 @@ func (m *Module) CompileWithNGen(gp GasPolicy, numGlobals uint64) (string, error
return out, retErr
}

func (m *Module) CompileForInterpreter(gp GasPolicy) ([]InterpreterCode, error) {
var (
ret []InterpreterCode
retErr error
)

func (m *Module) CompileForInterpreter(gp GasPolicy) (ret []InterpreterCode, retErr error) {
defer utils.CatchPanic(&retErr)

importTypeIDs := make([]int, 0)
Expand Down