Show the pretty representation of deleted variables in the diff output

While working on the 'abicompat' tool, it appeared that only the names
of deleted variables where printed in the diff report; what we want is
the full pretty representation of the variables, that is, we want
their type too.

This patch changes the reporting code of the corpus_diff to show the
full pretty representation of deleted variables.

	* src/abg-comparison.cc (corpus_diff::report): Show the pretty
	representation of deleted variables in all cases.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-11-30 12:44:58 +01:00
parent f091ff1ac2
commit 0b5edf13d7

View File

@ -10260,10 +10260,7 @@ corpus_diff::report(ostream& out, const string& indent) const
i != priv_->deleted_vars_.end();
++i)
{
if (!i->second->get_linkage_name().empty())
n = demangle_cplus_mangled_name(i->second->get_linkage_name());
else
n = i->second->get_pretty_representation();
n = i->second->get_pretty_representation();
out << indent
<< " ";
if (total > large_num)