def run(self, cfg, flags, args):
        if len(args) < 2:
            raise ArgError()
        input_file = args[0]
        interfaces = args[1:]

        output_file = target.flag(flags, "-o")
        rw_file = target.flag(flags, "--rw")

        return passes.specialize(input_file, output_file, rw_file, interfaces)
Ejemplo n.º 2
0
 def _spec((nm, m)):
     "Inter-module module specialization"
     pre = m.get()
     post = m.new('s')
     rw = rewrite_files[nm].new()
     passes.specialize(pre, post, rw, [iface_before_file.get()])
Ejemplo n.º 3
0
 def _spec((nm, m)):
     "Inter-module module specialization"
     pre = m.get()
     post = m.new('s')
     rw = rewrite_files[nm].new()
     passes.specialize(pre, post, rw, [iface_before_file.get()])