forked from Imagelibrary/binutils-gdb
x86: slightly simplify i386_parse_name()
With the switch to parse_real_register() (commit 4faaa10f3f) "bad_reg"
cannot come back anymore. Drop the respective check.
This commit is contained in:
@@ -13875,13 +13875,8 @@ i386_parse_name (char *name, expressionS *e, char *nextcharP)
|
||||
{
|
||||
*nextcharP = *input_line_pointer;
|
||||
*input_line_pointer = 0;
|
||||
if (r != &bad_reg)
|
||||
{
|
||||
e->X_op = O_register;
|
||||
e->X_add_number = r - i386_regtab;
|
||||
}
|
||||
else
|
||||
e->X_op = O_illegal;
|
||||
return 1;
|
||||
}
|
||||
input_line_pointer = end;
|
||||
|
||||
Reference in New Issue
Block a user