Reuse the same string table in one more place.

Saves another 53k on disk, no relocations.
macos/v1.5.9
Eric Anholt 11 years ago
parent 39ccf7089b
commit c4f582b532
  1. 4
      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(' {0} /* "{1}" */,'.format(self.entrypoint_string_offset[provider.name], provider.name))
self.outln(' };') 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(' providers, entrypoints);')
self.outln('}') self.outln('}')

Loading…
Cancel
Save