aboutsummaryrefslogtreecommitdiff
path: root/src/tpc.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/tpc.y')
-rw-r--r--src/tpc.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tpc.y b/src/tpc.y
index 1e6b6e2..266232f 100644
--- a/src/tpc.y
+++ b/src/tpc.y
@@ -114,10 +114,7 @@ ListTypVar:
114| TYPE IDENT { gen_declaration($<ident>2, $<type>1, scope); $<num>$ = 1; } 114| TYPE IDENT { gen_declaration($<ident>2, $<type>1, scope); $<num>$ = 1; }
115; 115;
116Corps: 116Corps:
117 '{' { int i; 117 '{' { gen_function_param_passing(nb_param[num_scope]); }
118 for(i=1;i<=nb_param[num_scope];i++){
119 fprintf(output, "mov r8, [rbp + %d]\nmov [rbp - %d], r8\n", (nb_param[num_scope]-i+2)*8, i*8);
120 } }
121 DeclConsts DeclVars SuiteInstr '}' 118 DeclConsts DeclVars SuiteInstr '}'
122; 119;
123SuiteInstr: 120SuiteInstr: