summaryrefslogtreecommitdiffstats
path: root/gold/resolve.cc
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/resolve.cc
parent2a1932dcc777a3aa4552a14aa917caf33f97427b (diff)
downloadppe42-binutils-a2b1aa12f7d82dfd451e110bff8df16cdf6e2c49.tar.gz
ppe42-binutils-a2b1aa12f7d82dfd451e110bff8df16cdf6e2c49.zip
From Craig Silverstein: Add support for --demangle.
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r--gold/resolve.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc
index b3328d564f..6e3d3acce3 100644
--- a/gold/resolve.cc
+++ b/gold/resolve.cc
@@ -256,11 +256,11 @@ Symbol_table::resolve(Sized_symbol<size>* to,
// on C++ symbols. These have (mangled) names starting with _Z.
&& to->name()[0] == '_' && to->name()[1] == 'Z')
{
- Symbol_location from_location
+ Symbol_location fromloc
= { object, orig_sym.get_st_shndx(), orig_sym.get_st_value() };
- Symbol_location to_location = { to->object(), to->shndx(), to->value() };
- this->candidate_odr_violations_[to->name()].insert(from_location);
- this->candidate_odr_violations_[to->name()].insert(to_location);
+ Symbol_location toloc = { to->object(), to->shndx(), to->value() };
+ this->candidate_odr_violations_[to->name()].insert(fromloc);
+ this->candidate_odr_violations_[to->name()].insert(toloc);
}
}
@@ -317,7 +317,7 @@ Symbol_table::should_override(const Symbol* to, unsigned int frombits,
// FIXME: Do a better job of reporting locations.
gold_error(_("%s: multiple definition of %s"),
object != NULL ? object->name().c_str() : _("command line"),
- to->name());
+ to->demangled_name().c_str());
gold_error(_("%s: previous definition here"),
(to->source() == Symbol::FROM_OBJECT
? to->object()->name().c_str()
OpenPOWER on IntegriCloud