summaryrefslogtreecommitdiffstats
path: root/eshtrans/backend
diff options
context:
space:
mode:
Diffstat (limited to 'eshtrans/backend')
-rw-r--r--eshtrans/backend/codegen.esh5
1 files changed, 3 insertions, 2 deletions
diff --git a/eshtrans/backend/codegen.esh b/eshtrans/backend/codegen.esh
index 9ba6c3f..9ceb3e2 100644
--- a/eshtrans/backend/codegen.esh
+++ b/eshtrans/backend/codegen.esh
@@ -106,10 +106,11 @@ codegen_sub()
# Function start/end tokens
case "${t%${US}*}" in
T_FN_START)
- printf '__fn_start %s;' "${fname#*${US}}"
+ printf '__fn_start %s %s;' \
+ "${tu_id}" "${fname#*${US}}"
;;
T_FN_END|T_RETURN)
- printf '__fn_end;'
+ printf '__fn_end; '
;;
esac