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,7 +1840,7 @@ class BindingsGenerator:
# TODO: when member method granularity is introduced, use that to determine
# PBR instead of at class level
pbr = self.customizer.get_pass_by_ref(class_data)
if self.opts.enabled_trampoline:
tramp_methods = self.find_tramp_methods(instance_data)
# If there exist any virtual functions abiding by certain criteria
# (see find_tramp_methods), we'll need to write out a trampoline implementation
......@@ -3321,6 +3321,14 @@ def main(argv=None):
dest="ens_flag",
default=True,
)
arg.add(
"-et",
"--enable-trampolines",
action="store",
default=True,
type=lambda x: bool(distutils.util.strtobool(x)),
dest="enabled_trampoline",
)
arg.add(
"-agns",
"--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