Remove evaluate_expression

evaluate_expression is just a little wrapper for a method on
expression.  Removing it also removes a lot of ugly (IMO) calls to
get().
This commit is contained in:
Tom Tromey
2023-04-28 07:24:59 -06:00
parent b785bb6d18
commit 43048e46db
18 changed files with 34 additions and 52 deletions

View File

@ -2722,7 +2722,7 @@ return_command (const char *retval_exp, int from_tty)
/* Compute the return value. Should the computation fail, this
call throws an error. */
return_value = evaluate_expression (retval_expr.get ());
return_value = retval_expr->evaluate ();
/* Cast return value to the return type of the function. Should
the cast fail, this call throws an error. */