* value.h (value_of_this): Update.

(value_of_local): Remove.
	* valops.c (value_of_this): Rename from value_of_local.  Change
	parameters.
	* p-exp.y (exp): Update.
	(variable): Likewise.
	* eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
This commit is contained in:
Tom Tromey
2011-06-17 20:35:09 +00:00
parent aee28ec61a
commit 7518bff55a
5 changed files with 17 additions and 19 deletions

View File

@@ -715,7 +715,8 @@ extern int value_logical_not (struct value *arg1);
/* C++ */
extern struct value *value_of_this (int complain);
extern struct value *value_of_this (const struct language_defn *lang,
int complain);
extern struct value *value_x_binop (struct value *arg1, struct value *arg2,
enum exp_opcode op,
@@ -835,8 +836,6 @@ extern struct value *find_function_in_inferior (const char *,
extern struct value *value_allocate_space_in_inferior (int);
extern struct value *value_of_local (const char *name, int complain);
extern struct value *value_subscripted_rvalue (struct value *array,
LONGEST index, int lowerbound);