diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 08:59:34 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | 9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa (patch) | |
tree | 5e8aa84d2e74e6345c05a438efda6eb25adb4b99 /gdb/stabsread.c | |
parent | c9eb9f185472eef2e87684bed63424947f77b386 (diff) | |
download | gdb-9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa.zip gdb-9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa.tar.gz gdb-9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa.tar.bz2 |
Remove alloc_type_copy
This removes alloc_type_copy, replacing all uses with the new type
allocator.
Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 73f05c4..cfe2453 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1475,7 +1475,7 @@ allocate_stub_method (struct type *type) { struct type *mtype; - mtype = alloc_type_copy (type); + mtype = type_allocator (type).new_type (); mtype->set_code (TYPE_CODE_METHOD); mtype->set_length (1); mtype->set_is_stub (true); |