Use an accessor function for general_symbol_info::language
[deliverable/binutils-gdb.git] / gdb / dwarf-index-write.c
index cbad3084307afda194edeadbf579a95a4d7b84f9..66c2368b9c14d244b600b18b578e3e40da0a247c 100644 (file)
@@ -543,7 +543,7 @@ write_psymbols (struct mapped_symtab *symtab,
     {
       struct partial_symbol *psym = *psymp;
 
-      if (psym->ginfo.language == language_ada)
+      if (psym->ginfo.language () == language_ada)
        error (_("Ada is not currently supported by the index; "
                 "use the DWARF 5 index instead"));
 
@@ -690,7 +690,7 @@ public:
       return;
     const char *name = psym->ginfo.search_name ();
 
-    if (psym->ginfo.language == language_ada)
+    if (psym->ginfo.language () == language_ada)
       {
        /* We want to ensure that the Ada main function's name appears
           verbatim in the index.  However, this name will be of the
This page took 0.025914 seconds and 4 git commands to generate.