aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-15 01:12:55 +0000
committerIan Lance Taylor <iant@google.com>2007-11-15 01:12:55 +0000
commita2b1aa12f7d82dfd451e110bff8df16cdf6e2c49 (patch)
treee32b20a9b4065d58ffd0a8e1479f428fadb68ab5 /gold/symtab.h
parent2a1932dcc777a3aa4552a14aa917caf33f97427b (diff)
downloadgdb-a2b1aa12f7d82dfd451e110bff8df16cdf6e2c49.zip
gdb-a2b1aa12f7d82dfd451e110bff8df16cdf6e2c49.tar.gz
gdb-a2b1aa12f7d82dfd451e110bff8df16cdf6e2c49.tar.bz2
From Craig Silverstein: Add support for --demangle.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 8206cba..b6e5504 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -98,6 +98,13 @@ class Symbol
name() const
{ return this->name_; }
+ // Return the (ANSI) demangled version of the name, if
+ // parameters.demangle() is true. Otherwise, return the name. This
+ // is intended to be used only for logging errors, so it's not
+ // super-efficient.
+ std::string
+ demangled_name() const;
+
// Return the symbol version. This will return NULL for an
// unversioned symbol.
const char*