summaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-04-28 07:26:44 -0600
committerTom Tromey <tromey@adacore.com>2023-05-01 11:04:13 -0600
commitba71385e7f8824849f5a1f3d77bd5f03928138eb (patch)
treee15d8a1ffcb564d8def235f15eaa7e65d3f1f835 /gdb/gnu-v3-abi.c
parent43048e46db188e546ba2107bdffcc7eb751c91df (diff)
downloadbinutils-gdb-ba71385e7f8824849f5a1f3d77bd5f03928138eb.tar.gz
Remove evaluate_type
Like evaluate_expression, evaluate_type is also just a simple wrapper. Removing it makes the code a little nicer.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 4d1aa12746f..2c7c83e67b1 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -1211,7 +1211,7 @@ gnuv3_get_type_from_type_info (struct value *type_info_ptr)
internal form to reconstruct the type somehow. */
std::string type_name = gnuv3_get_typename_from_type_info (type_info_ptr);
expression_up expr (parse_expression (type_name.c_str ()));
- struct value *type_val = evaluate_type (expr.get ());
+ struct value *type_val = expr->evaluate_type ();
return type_val->type ();
}