diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 12:23:53 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 12:23:53 -0500 |
commit | 344e9841d989cb96316d8d487e004212d4d3090a (patch) | |
tree | d8a7b89648a9463e2acbb0037740bf55149bc5a2 /gdb/rust-lang.c | |
parent | 30625020198359db7462a197380c242d91c07f14 (diff) | |
download | gdb-344e9841d989cb96316d8d487e004212d4d3090a.zip gdb-344e9841d989cb96316d8d487e004212d4d3090a.tar.gz gdb-344e9841d989cb96316d8d487e004212d4d3090a.tar.bz2 |
gdb: remove TYPE_OBJFILE macro
Change all users to use the type::objfile method instead.
gdb/ChangeLog:
* gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
type::objfile method instead.
Change-Id: I6b3f580913fb1fb0cf986b176dba8db68e1fabf9
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index e9827ff..fc572ce 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -1825,7 +1825,7 @@ rust_operator_check (struct expression *exp, int pos, case OP_AGGREGATE: { struct type *type = exp->elts[pos + 1].type; - struct objfile *objfile = TYPE_OBJFILE (type); + struct objfile *objfile = type->objfile (); if (objfile != NULL && (*objfile_func) (objfile, data)) return 1; |