pass op to custom init_attr function
authorMatthias Braun <matze@braunis.de>
Fri, 14 Sep 2007 11:55:08 +0000 (11:55 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 14 Sep 2007 11:55:08 +0000 (11:55 +0000)
[r15805]

ir/be/scripts/generate_new_opcodes.pl

index 663c82f..f06d083 100755 (executable)
@@ -508,7 +508,7 @@ foreach my $op (keys(%nodes)) {
                        }
                        $temp .= "${attr_init_code}\n";
                        if(defined($custom_init_attr_func)) {
-                               $temp .= &$custom_init_attr_func(\%n);
+                               $temp .= &$custom_init_attr_func(\%n, $op);
                        }
                        $temp .= "\n";