gcc_decl resuld;
if (type->code () == TYPE_CODE_STRUCT)
{
- const char *what = TYPE_DECLARED_CLASS (type) ? "struct" : "class";
+ const char *what = TYPE_DECLARED_CLASS (type) ? "class" : "struct";
resuld = instance->plugin ().build_decl
(what, name.get (), (GCC_CP_SYMBOL_CLASS | nested_access
if (target_type == nullptr)
{
if (type->is_objfile_owned ())
- target_type = objfile_type (type->objfile ())->builtin_int;
+ target_type = objfile_type (type->objfile_owner ())->builtin_int;
else
- target_type = builtin_type (type->arch ())->builtin_int;
+ target_type = builtin_type (type->arch_owner ())->builtin_int;
warning (_("function has unknown return type; assuming int"));
}