Update Traditional Chinese translation for the binutils sub-directory.
[deliverable/binutils-gdb.git] / gdb / cp-namespace.c
index e15b77e701ddd832ad12b33a4ee6ef2203423a55..ad7e3bcc3b74406943066c393474fa7d9babeab9 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper routines for C++ support in GDB.
-   Copyright (C) 2003-2019 Free Software Foundation, Inc.
+   Copyright (C) 2003-2020 Free Software Foundation, Inc.
 
    Contributed by David Carlton and by Kealia, Inc.
 
@@ -54,9 +54,9 @@ cp_scan_for_anonymous_namespaces (struct buildsym_compunit *compunit,
                                  const struct symbol *const symbol,
                                  struct objfile *const objfile)
 {
-  if (SYMBOL_DEMANGLED_NAME (symbol) != NULL)
+  if (symbol->demangled_name () != NULL)
     {
-      const char *name = SYMBOL_DEMANGLED_NAME (symbol);
+      const char *name = symbol->demangled_name ();
       unsigned int previous_component;
       unsigned int next_component;
 
@@ -488,7 +488,7 @@ search_symbol_list (const char *name, int num,
   /* Maybe we should store a dictionary in here instead.  */
   for (i = 0; i < num; ++i)
     {
-      if (strcmp (name, SYMBOL_NATURAL_NAME (syms[i])) == 0)
+      if (strcmp (name, syms[i]->natural_name ()) == 0)
        return syms[i];
     }
   return NULL;
@@ -516,7 +516,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
                          domain_name (domain));
     }
 
-  if (function != NULL && SYMBOL_LANGUAGE (function) == language_cplus)
+  if (function != NULL && function->language () == language_cplus)
     {
       /* Search the function's template parameters.  */
       if (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION (function))
@@ -542,12 +542,11 @@ cp_lookup_symbol_imports_or_template (const char *scope,
 
       /* Search the template parameters of the function's defining
         context.  */
-      if (SYMBOL_NATURAL_NAME (function))
+      if (function->natural_name ())
        {
          struct type *context;
-         std::string name_copy (SYMBOL_NATURAL_NAME (function));
+         std::string name_copy (function->natural_name ());
          const struct language_defn *lang = language_def (language_cplus);
-         struct gdbarch *arch = symbol_arch (function);
          const struct block *parent = BLOCK_SUPERBLOCK (block);
          struct symbol *sym;
 
@@ -561,7 +560,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
              else
                {
                  name_copy.erase (prefix_len);
-                 context = lookup_typename (lang, arch,
+                 context = lookup_typename (lang,
                                             name_copy.c_str (),
                                             parent, 1);
                }
This page took 0.025387 seconds and 4 git commands to generate.