diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 08:24:35 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 81ae560ca4f0da47729dc37a889c2f2e01c4c84e (patch) | |
tree | 9f251c4fb80f169eab6c0ff556903fd1eb301700 /gdb/value.c | |
parent | d0c9791728caa0d3b3270a997c7fd97919976c97 (diff) | |
download | gdb-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.zip gdb-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.tar.gz gdb-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.tar.bz2 |
Turn deprecated_set_value_type into a method
This changes deprecated_set_value_type to be a method of value. Much
of this patch was written by script.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gdb/value.c b/gdb/value.c index 6f176b0..9347acd 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1024,12 +1024,6 @@ allocate_optimized_out_value (struct type *type) /* Accessor methods. */ -void -deprecated_set_value_type (struct value *value, struct type *type) -{ - value->m_type = type; -} - LONGEST value_offset (const struct value *value) { @@ -1737,8 +1731,7 @@ make_cv_value (int cnst, int voltl, struct value *v) struct type *m_enclosing_type = value_enclosing_type (v); struct value *cv_val = value_copy (v); - deprecated_set_value_type (cv_val, - make_cv_type (cnst, voltl, val_type, NULL)); + cv_val->deprecated_set_type (make_cv_type (cnst, voltl, val_type, NULL)); set_value_enclosing_type (cv_val, make_cv_type (cnst, voltl, m_enclosing_type, NULL)); @@ -3836,7 +3829,7 @@ readjust_indirect_value_type (struct value *value, struct type *enc_type, original_value_address); /* Re-adjust type. */ - deprecated_set_value_type (value, resolved_original_target_type); + value->deprecated_set_type (resolved_original_target_type); /* Add embedding info. */ set_value_enclosing_type (value, enc_type); |