Cleaned up function type
This commit is contained in:
parent
f870a5f1f8
commit
67b3a3d820
14 changed files with 310 additions and 294 deletions
|
@ -34,11 +34,11 @@ func compile(functions <-chan *Function, errs <-chan error) (Result, error) {
|
|||
compileFunctions(allFunctions)
|
||||
|
||||
for _, function := range allFunctions {
|
||||
if function.Error != nil {
|
||||
return result, function.Error
|
||||
if function.err != nil {
|
||||
return result, function.err
|
||||
}
|
||||
|
||||
result.InstructionCount += len(function.Assembler.Instructions)
|
||||
result.InstructionCount += len(function.assembler.Instructions)
|
||||
}
|
||||
|
||||
main, exists := allFunctions["main"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue