Remove evaluate_type

Like evaluate_expression, evaluate_type is also just a simple wrapper.
Removing it makes the code a little nicer.
This commit is contained in:
Tom Tromey
2023-04-28 07:26:44 -06:00
parent 43048e46db
commit ba71385e7f
8 changed files with 11 additions and 17 deletions

View File

@@ -225,6 +225,11 @@ struct expression
struct value *evaluate (struct type *expect_type = nullptr,
enum noside noside = EVAL_NORMAL);
/* Evaluate an expression, avoiding all memory references
and getting a value whose type alone is correct. */
struct value *evaluate_type ()
{ return evaluate (nullptr, EVAL_AVOID_SIDE_EFFECTS); }
/* Language it was entered in. */
const struct language_defn *language_defn;
/* Architecture it was parsed in. */