aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 08:59:34 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:37 -0600
commit9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa (patch)
tree5e8aa84d2e74e6345c05a438efda6eb25adb4b99 /gdb/rust-lang.c
parentc9eb9f185472eef2e87684bed63424947f77b386 (diff)
downloadgdb-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/rust-lang.c')
-rw-r--r--gdb/rust-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index 6fc73b2..82004da 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -939,7 +939,7 @@ rust_composite_type (struct type *original,
const char *field1, struct type *type1,
const char *field2, struct type *type2)
{
- struct type *result = alloc_type_copy (original);
+ struct type *result = type_allocator (original).new_type ();
int i, nfields, bitpos;
nfields = 0;