Unify arch_pointer_type and init_pointer_type
[binutils-gdb.git] / gdb / z80-tdep.c
index 78b3827b54d29900dc4c1790cb9a07f9f95ece40..27cdca1c9c70a4012b41e695d95d41083f87a302 100644 (file)
@@ -1143,7 +1143,7 @@ z80_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   tdep->void_type = alloc.new_type (TYPE_CODE_VOID, TARGET_CHAR_BIT,
                                    "void");
   tdep->func_void_type = make_function_type (tdep->void_type, NULL);
-  tdep->pc_type = arch_pointer_type (gdbarch,
+  tdep->pc_type = init_pointer_type (alloc,
                                     tdep->addr_length * TARGET_CHAR_BIT,
                                     NULL, tdep->func_void_type);