diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-23 02:17:37 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-23 02:17:37 (EST) |
commit | a90d2095819a6926ba4f6f2f1bd2a65fb3873396 (patch) | |
tree | 1ea825d091bd96c9cf34e976c549816d1e4395b1 /eshtrans | |
parent | eaaf909f395f6ae1e7ff15fc77699c938766faa9 (diff) | |
download | eggshell-a90d2095819a6926ba4f6f2f1bd2a65fb3873396.zip eggshell-a90d2095819a6926ba4f6f2f1bd2a65fb3873396.tar.gz eggshell-a90d2095819a6926ba4f6f2f1bd2a65fb3873396.tar.bz2 |
eshtrans/backend: Add TU to __fn_start calls
Diffstat (limited to 'eshtrans')
-rw-r--r-- | eshtrans/backend/codegen.esh | 5 |
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 |