forked from Imagelibrary/binutils-gdb
* valops.c (value_of_local): Complain if NAME is NULL.
* std-operator.def (OP_OBJC_SELF): Remove. * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove. * objc-exp.y (name_not_typename): Use OP_THIS. * expprint.c (print_subexp_standard) <OP_THIS>: Print language's name for "this". <OP_OBJC_SELF>: Remove. * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
This commit is contained in:
@@ -2830,11 +2830,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
||||
|
||||
case OP_THIS:
|
||||
(*pos) += 1;
|
||||
return value_of_this (1);
|
||||
|
||||
case OP_OBJC_SELF:
|
||||
(*pos) += 1;
|
||||
return value_of_local ("self", 1);
|
||||
return value_of_local (exp->language_defn->la_name_of_this, 1);
|
||||
|
||||
case OP_TYPE:
|
||||
/* The value is not supposed to be used. This is here to make it
|
||||
|
||||
Reference in New Issue
Block a user