+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
+ (c_symbol_substitution_name): ... this.
+ Update all callers.
+
2018-08-10 Keith Seitz <keiths@redhat.com>
* compile/compile-c-support.c (c_compute_program): Use
address. */
static gdb::unique_xmalloc_ptr<char>
-symbol_substitution_name (struct symbol *sym)
+c_symbol_substitution_name (struct symbol *sym)
{
return gdb::unique_xmalloc_ptr<char>
(concat ("__", SYMBOL_NATURAL_NAME (sym), "_ptr", (char *) NULL));
case LOC_LOCAL:
substitution:
kind = GCC_C_SYMBOL_VARIABLE;
- symbol_name = symbol_substitution_name (sym.symbol);
+ symbol_name = c_symbol_substitution_name (sym.symbol);
break;
case LOC_STATIC:
if (SYMBOL_COMPUTED_OPS (sym) != NULL)
{
gdb::unique_xmalloc_ptr<char> generated_name
- = symbol_substitution_name (sym);
+ = c_symbol_substitution_name (sym);
/* We need to emit to a temporary buffer in case an error
occurs in the middle. */
string_file local_file;