diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-15 01:37:15 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-15 01:37:15 +0100 |
commit | f8644c31a3e6f4c3d9a95837c22a18fd27155510 (patch) | |
tree | beae6b4437093607e394e99462812ba4ecb37cac /builtin.c | |
parent | 1e2851cdb3add02948e28ba2e80594794bbcffb3 (diff) |
Only generate code for those builtin functions actually used.
Makes output of --debug-dump-disasm much simpler.
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -543,7 +543,7 @@ static block bind_bytecoded_builtins(block b) { range)); } - return block_bind(builtins, b, OP_IS_CALL_PSEUDO); + return block_bind_referenced(builtins, b, OP_IS_CALL_PSEUDO); } static const char* const jq_builtins[] = { @@ -572,7 +572,7 @@ block builtins_bind(block b) { block funcs; int nerrors = jq_parse_library(&src, &funcs); assert(!nerrors); - b = block_bind(funcs, b, OP_IS_CALL_PSEUDO); + b = block_bind_referenced(funcs, b, OP_IS_CALL_PSEUDO); locfile_free(&src); } b = bind_bytecoded_builtins(b); |