aboutsummaryrefslogtreecommitdiff
path: root/gdb/type-stack.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2020-09-14 21:16:57 +0100
committerPedro Alves <pedro@palves.net>2020-09-14 22:19:02 +0100
commit69896a2cd12e7819a81823430b3ece5a7c9a6973 (patch)
tree995105bbfff38fedd49859208bb8df2c3acb05c9 /gdb/type-stack.h
parent314ad88df63c26a986e1ecd18bfe1de81a3cc0fb (diff)
downloadgdb-69896a2cd12e7819a81823430b3ece5a7c9a6973.zip
gdb-69896a2cd12e7819a81823430b3ece5a7c9a6973.tar.gz
gdb-69896a2cd12e7819a81823430b3ece5a7c9a6973.tar.bz2
Rename address_space_int_to_name/address_space_name_to_int
These methods now take/return a type_instance_flags instead of a raw integer, so rename them accordingly. gdb/ChangeLog: * c-typeprint.c (c_type_print_modifier): Adjust to rename. * gdbtypes.c (address_space_name_to_int): Rename to ... (address_space_name_to_type_instance_flags): ... this. (address_space_int_to_name): Rename to ... (address_space_type_instance_flags_to_name): ... this. * gdbtypes.h (address_space_name_to_int): Rename to ... (address_space_name_to_type_instance_flags): ... this. (address_space_int_to_name): Rename to ... (address_space_type_instance_flags_to_name): ... this. * type-stack.c (type_stack::insert): Adjust to rename. * type-stack.h (type_stack::insert): Likewise.
Diffstat (limited to 'gdb/type-stack.h')
-rw-r--r--gdb/type-stack.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/type-stack.h b/gdb/type-stack.h
index 8060f2f..265178f 100644
--- a/gdb/type-stack.h
+++ b/gdb/type-stack.h
@@ -157,11 +157,11 @@ public:
/* Insert a tp_space_identifier and the corresponding address space
value into the stack. STRING is the name of an address space, as
- recognized by address_space_name_to_int. If the stack is empty,
- the new elements are simply pushed. If the stack is not empty,
- this function assumes that the first item on the stack is a
- tp_pointer, and the new values are inserted above the first
- item. */
+ recognized by address_space_name_to_type_instance_flags. If the
+ stack is empty, the new elements are simply pushed. If the stack
+ is not empty, this function assumes that the first item on the
+ stack is a tp_pointer, and the new values are inserted above the
+ first item. */
void insert (struct expr_builder *pstate, const char *string);