Fix destructor naming.

* src/abg-ir.cc (function_decl::get_pretty_representation): In
	DWARF at least, the destructor function name already contains the
	'~'.  No need to add it.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-03-20 13:38:02 +01:00
parent 52a7991d5e
commit 65b4779ffe

View File

@ -3075,12 +3075,12 @@ function_decl::get_pretty_representation() const
|| get_member_function_is_ctor(*mem_fn))))
result += "void ";
if (mem_fn && get_member_function_is_dtor(*mem_fn))
result += "~";
if (mem_fn)
result += mem_fn->get_type()->get_class_type()->get_qualified_name()
+ "::" + mem_fn->get_name();
{
result += mem_fn->get_type()->get_class_type()->get_qualified_name()
+ "::" + mem_fn->get_name();
}
else
result += get_qualified_name();