summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-13 19:18:11 -0800
committerEric Anholt <eric@anholt.net>2013-12-15 20:16:01 -0800
commitc4f582b5329f4c6832a2b111b9db107da0d87a32 (patch)
tree2feaef5a4c7eaad4160192083b80c08d0012f905 /src
parent39ccf7089b0b67d8bec36b571d50d14493ac23c7 (diff)
Reuse the same string table in one more place.
Saves another 53k on disk, no relocations.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gen_dispatch.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py
index 8b57336..ef2b433 100755
--- a/src/gen_dispatch.py
+++ b/src/gen_dispatch.py
@@ -546,7 +546,9 @@ class Generator(object):
self.outln(' {0} /* "{1}" */,'.format(self.entrypoint_string_offset[provider.name], provider.name))
self.outln(' };')
- self.outln(' return {0}_provider_resolver("{1}",'.format(self.target, func.name))
+ self.outln(' return {0}_provider_resolver(entrypoint_strings + {1} /* "{2}" */,'.format(self.target,
+ self.entrypoint_string_offset[func.name],
+ func.name))
self.outln(' providers, entrypoints);')
self.outln('}')