Commit c90717a3 authored by Damien George's avatar Damien George
Browse files

py: Add missing dummy functions to pass 1 emitter.

parent 58ba4c3b
...@@ -35,6 +35,14 @@ STATIC void emit_pass1_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope ...@@ -35,6 +35,14 @@ STATIC void emit_pass1_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope
STATIC void emit_pass1_end_pass(emit_t *emit) { STATIC void emit_pass1_end_pass(emit_t *emit) {
} }
STATIC bool emit_pass1_last_emit_was_return_value(emit_t *emit) {
return false;
}
STATIC int emit_pass1_get_stack_size(emit_t *emit) {
return 0;
}
STATIC void emit_pass1_load_id(emit_t *emit, qstr qstr) { STATIC void emit_pass1_load_id(emit_t *emit, qstr qstr) {
// name adding/lookup // name adding/lookup
bool added; bool added;
...@@ -99,8 +107,8 @@ const emit_method_table_t emit_pass1_method_table = { ...@@ -99,8 +107,8 @@ const emit_method_table_t emit_pass1_method_table = {
(void*)emit_pass1_dummy, (void*)emit_pass1_dummy,
emit_pass1_start_pass, emit_pass1_start_pass,
emit_pass1_end_pass, emit_pass1_end_pass,
(void*)emit_pass1_dummy, emit_pass1_last_emit_was_return_value,
(void*)emit_pass1_dummy, emit_pass1_get_stack_size,
(void*)emit_pass1_dummy, (void*)emit_pass1_dummy,
(void*)emit_pass1_dummy, (void*)emit_pass1_dummy,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment