From Craig Silverstein: Add support for --demangle.

This commit is contained in:
Ian Lance Taylor
2007-11-15 01:12:55 +00:00
parent 2a1932dcc7
commit a2b1aa12f7
12 changed files with 100 additions and 21 deletions

View File

@ -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*