Inline get_reg_value method of dwarf_expr_context
authorZoran Zaric <Zoran.Zaric@amd.com>
Fri, 9 Oct 2020 14:06:15 +0000 (15:06 +0100)
committerZoran Zaric <zoran.zaric@amd.com>
Thu, 5 Aug 2021 15:40:12 +0000 (16:40 +0100)
commit9e739f693f142ac634d9d127bd9951d0c62593c1
tree54e47af07c4fac514bb3d0a34be5787ac57baa25
parent0a2b69d04bbb0b5d69ae93da998b65d44fc7612b
Inline get_reg_value method of dwarf_expr_context

The get_reg_value method is a small function that is only called once,
so it can be inlined to simplify the dwarf_expr_context class.

gdb/ChangeLog:

* dwarf2/expr.c (dwarf_expr_context::get_reg_value): Remove
method.
(dwarf_expr_context::execute_stack_op): Inline get_reg_value
method.
* dwarf2/expr.h (dwarf_expr_context::get_reg_value): Remove
method.
gdb/dwarf2/expr.c
gdb/dwarf2/expr.h