Remove unused void* from arch_register_t.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 14 Oct 2008 20:20:21 +0000 (20:20 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 14 Oct 2008 20:20:21 +0000 (20:20 +0000)
[r22888]

ir/be/bearch_t.h
ir/be/scripts/generate_regalloc_if.pl

index efba495..8dc1f61 100644 (file)
@@ -43,7 +43,6 @@ struct arch_register_t {
        const arch_register_class_t *reg_class;   /**< The class the register belongs to. */
        unsigned                    index;        /**< The index of the register in the class. */
        arch_register_type_t        type;         /**< The type of the register. */
-       void                        *data;        /**< Custom data. */
 };
 
 static INLINE const arch_register_class_t *
index 9025b75..3fb2bfc 100755 (executable)
@@ -156,7 +156,6 @@ foreach my $class_name (keys(%reg_classes)) {
                # realname is name if not set by user
                $_->{"realname"} = $_->{"name"} if (! exists($_->{"realname"}));
                my $realname = $_->{realname};
-               my $execunitvarname = get_execunit_variable_name($_->{"unit"});
 
 
                $reg2class{$_->{"name"}} = { "class" => $old_classname, "index" => $idx }; # remember reg to class for later use
@@ -166,8 +165,7 @@ foreach my $class_name (keys(%reg_classes)) {
                push(@obst_regtypes_def, "\t\t\"$realname\",\n");
                push(@obst_regtypes_def, "\t\t$class_ptr,\n");
                push(@obst_regtypes_def, "\t\tREG_${ucname},\n");
-               push(@obst_regtypes_def, "\t\t$type,\n");
-               push(@obst_regtypes_def, "\t\t$execunitvarname\n");
+               push(@obst_regtypes_def, "\t\t$type\n");
                push(@obst_regtypes_def, "\t},\n");
 
                $idx++;