GDB's parser used to do.  */
   if (target_type == NULL)
     {
-      if (type->is_objfile_owned ())
-       target_type = objfile_type (type->objfile_owner ())->builtin_int;
-      else
-       target_type = builtin_type (type->arch_owner ())->builtin_int;
+      target_type = builtin_type (type->arch ())->builtin_int;
       warning (_("function has unknown return type; assuming int"));
     }
 
           the cast-to type as the variable's type, like GDB's
           built-in parser does.  For now, assume "int" like GDB's
           built-in parser used to do, but at least warn.  */
-       struct type *fallback;
-       if (type->is_objfile_owned ())
-         fallback = objfile_type (type->objfile_owner ())->builtin_int;
-       else
-         fallback = builtin_type (type->arch_owner ())->builtin_int;
+       struct type *fallback = builtin_type (type->arch ())->builtin_int;
        warning (_("variable has unknown type; assuming int"));
        return convert_int (context, fallback);
       }
 
      GDB's parser used to do.  */
   if (target_type == nullptr)
     {
-      if (type->is_objfile_owned ())
-       target_type = objfile_type (type->objfile_owner ())->builtin_int;
-      else
-       target_type = builtin_type (type->arch_owner ())->builtin_int;
+      target_type = builtin_type (type->arch ())->builtin_int;
       warning (_("function has unknown return type; assuming int"));
     }
 
 
   struct type *range_type;
 
   type_allocator alloc (element_type);
-  if (element_type->is_objfile_owned ())
-    index_type = objfile_type (element_type->objfile_owner ())->builtin_int;
-  else
-    index_type = builtin_type (element_type->arch_owner ())->builtin_int;
+  index_type = builtin_type (element_type->arch ())->builtin_int;
 
   range_type = create_static_range_type (alloc, index_type,
                                         low_bound, high_bound);