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

@@ -1164,9 +1164,7 @@ print_object_command (const char *args, int from_tty)
{
expression_up expr = parse_expression (args);
object
= evaluate_expression (expr.get (),
builtin_type (expr->gdbarch)->builtin_data_ptr);
object = expr->evaluate (builtin_type (expr->gdbarch)->builtin_data_ptr);
}
/* Validate the address for sanity. */