aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-01-05 17:26:20 -0700
committerTom Tromey <tom@tromey.com>2018-01-17 11:28:44 -0700
commit50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb (patch)
treec3998bba00b7574526cbd5f4279f7277de40ffc0 /gdb/gdbtypes.h
parentc89b44cdc52b6a9c0848a795689895e292ad1f46 (diff)
downloadgdb-50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb.zip
gdb-50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb.tar.gz
gdb-50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb.tar.bz2
Remove objfile argument from add_dyn_prop
The objfile argument to add_dyn_prop is redundant, so this patch removes it. 2018-01-17 Tom Tromey <tom@tromey.com> * gdbtypes.h (add_dyn_prop): Remove objfile parameter. * gdbtypes.c (add_dyn_prop): Remove objfile parameter. (create_array_type_with_stride): Update. * dwarf2read.c (set_die_type): Update.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 5942b5a..712b16b 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -1841,11 +1841,10 @@ extern struct dynamic_prop *get_dyn_prop
/* * Given a dynamic property PROP of a given KIND, add this dynamic
property to the given TYPE.
- This function assumes that TYPE is objfile-owned, and that OBJFILE
- is the TYPE's objfile. */
+ This function assumes that TYPE is objfile-owned. */
extern void add_dyn_prop
(enum dynamic_prop_node_kind kind, struct dynamic_prop prop,
- struct type *type, struct objfile *objfile);
+ struct type *type);
extern void remove_dyn_prop (enum dynamic_prop_node_kind prop_kind,
struct type *type);