#include "c-lang.h"
#include <algorithm>
#include "gdbarch.h"
+#include "compile/compile-internal.h"
static void set_range_case (void);
return c_is_string_type_p (type);
}
+/* See language.h. */
+
+std::unique_ptr<compile_instance>
+language_defn::get_compile_instance () const
+{
+ return {};
+}
+
/* The default implementation of the get_symbol_name_matcher_inner method
from the language_defn class. Matches with strncmp_iw. */
{
struct symbol *symbol;
struct gdbarch *gdbarch;
- gdb_assert (!TYPE_OBJFILE_OWNED (type));
- gdbarch = type->arch ();
+ gdb_assert (!type->is_objfile_owned ());
+ gdbarch = type->arch_owner ();
symbol = new (gdbarch_obstack (gdbarch)) struct symbol ();
symbol->m_name = type->name ();
symbol->set_language (lang, nullptr);