summaryrefslogtreecommitdiff
path: root/src/codegen.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-11-27 18:49:42 -0500
committerAdrian Thurston <thurston@complang.org>2015-11-27 18:49:42 -0500
commit3b91ea314d5b96f48955430b09d5bb072f7c1ef1 (patch)
tree0094ab71cb4a43ca4f9376938140431c87e294bb /src/codegen.cc
parent255a339bf052fbc2a2412fd88b89936c95c7db33 (diff)
downloadcolm-3b91ea314d5b96f48955430b09d5bb072f7c1ef1.tar.gz
added an option, -b, for specifying the name of the program object
This also triggers the omission of C adapter funcs, which need to be present only once in a binary that includes a colm code.
Diffstat (limited to 'src/codegen.cc')
-rw-r--r--src/codegen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cc b/src/codegen.cc
index 821f1880..ecc45840 100644
--- a/src/codegen.cc
+++ b/src/codegen.cc
@@ -57,7 +57,7 @@ void FsmCodeGen::writeMain( long activeRealm )
" struct colm_program *prg;\n"
" int exit_status;\n"
"\n"
- " prg = colm_new_program( &colm_object );\n"
+ " prg = colm_new_program( &" << objectName << " );\n"
" colm_set_debug( prg, " << activeRealm << " );\n"
" colm_run_program( prg, argc, argv );\n"
" exit_status = colm_delete_program( prg );\n"