From c4f582b5329f4c6832a2b111b9db107da0d87a32 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 13 Dec 2013 19:18:11 -0800 Subject: [PATCH] Reuse the same string table in one more place. Saves another 53k on disk, no relocations. --- src/gen_dispatch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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('}')