diff options
author | Zoran Zaric <Zoran.Zaric@amd.com> | 2020-10-09 15:06:15 +0100 |
---|---|---|
committer | Zoran Zaric <zoran.zaric@amd.com> | 2021-08-05 16:40:12 +0100 |
commit | 9e739f693f142ac634d9d127bd9951d0c62593c1 (patch) | |
tree | 54e47af07c4fac514bb3d0a34be5787ac57baa25 /gdb/dwarf2/expr.h | |
parent | 0a2b69d04bbb0b5d69ae93da998b65d44fc7612b (diff) | |
download | gdb-9e739f693f142ac634d9d127bd9951d0c62593c1.zip gdb-9e739f693f142ac634d9d127bd9951d0c62593c1.tar.gz gdb-9e739f693f142ac634d9d127bd9951d0c62593c1.tar.bz2 |
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.
Diffstat (limited to 'gdb/dwarf2/expr.h')
-rw-r--r-- | gdb/dwarf2/expr.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/dwarf2/expr.h b/gdb/dwarf2/expr.h index 70c887b..9dc9257 100644 --- a/gdb/dwarf2/expr.h +++ b/gdb/dwarf2/expr.h @@ -211,12 +211,6 @@ private: void execute_stack_op (const gdb_byte *op_ptr, const gdb_byte *op_end); void pop (); - /* Return a value of type TYPE, stored in register number REGNUM - in a current context. - - REGNUM is a DWARF register number. */ - struct value *get_reg_value (struct type *type, int regnum); - /* Return the location expression for the frame base attribute, in START and LENGTH. The result must be live until the current expression evaluation is complete. */ |