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.h | |
parent | d0c9791728caa0d3b3270a997c7fd97919976c97 (diff) | |
download | binutils-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.zip binutils-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.tar.gz binutils-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.h')
-rw-r--r-- | gdb/value.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/value.h b/gdb/value.h index 80c92c4..2b626ad 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -164,6 +164,12 @@ struct value struct type *type () const { return m_type; } + /* This is being used to change the type of an existing value, that + code should instead be creating a new value with the changed type + (but possibly shared content). */ + void deprecated_set_type (struct type *type) + { m_type = type; } + /* Type of value; either not an lval, or one of the various different possible kinds of lval. */ @@ -346,13 +352,6 @@ struct value extern struct gdbarch *get_value_arch (const struct value *value); -/* This is being used to change the type of an existing value, that - code should instead be creating a new value with the changed type - (but possibly shared content). */ - -extern void deprecated_set_value_type (struct value *value, - struct type *type); - /* Only used for bitfields; number of bits contained in them. */ extern LONGEST value_bitsize (const struct value *); |