Commit a200e24b authored by John Parent's avatar John Parent
Browse files

Optional Trampolines

parent 935f5d8a
Pipeline #232648 passed with stages
in 27 minutes and 23 seconds
...@@ -1840,8 +1840,8 @@ class BindingsGenerator: ...@@ -1840,8 +1840,8 @@ class BindingsGenerator:
# TODO: when member method granularity is introduced, use that to determine # TODO: when member method granularity is introduced, use that to determine
# PBR instead of at class level # PBR instead of at class level
pbr = self.customizer.get_pass_by_ref(class_data) pbr = self.customizer.get_pass_by_ref(class_data)
if self.opts.enabled_trampoline:
tramp_methods = self.find_tramp_methods(instance_data) tramp_methods = self.find_tramp_methods(instance_data)
# If there exist any virtual functions abiding by certain criteria # If there exist any virtual functions abiding by certain criteria
# (see find_tramp_methods), we'll need to write out a trampoline implementation # (see find_tramp_methods), we'll need to write out a trampoline implementation
tramp_name = "" tramp_name = ""
...@@ -3321,6 +3321,14 @@ def main(argv=None): ...@@ -3321,6 +3321,14 @@ def main(argv=None):
dest="ens_flag", dest="ens_flag",
default=True, default=True,
) )
arg.add(
"-et",
"--enable-trampolines",
action="store",
default=True,
type=lambda x: bool(distutils.util.strtobool(x)),
dest="enabled_trampoline",
)
arg.add( arg.add(
"-agns", "-agns",
"--apply_global_namespace", "--apply_global_namespace",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment