Fix diff emptiness detection for function_decl_diff nodes

* src/abg-comparison.cc (function_decl_diff::length): Just compare
	the two functions here, damit.
	* tests/data/test-diff-dwarf/test0-report.txt: Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-03-21 15:27:55 +01:00
parent 7eecfa8a0c
commit ec6d70500d
2 changed files with 3 additions and 1 deletions

View File

@ -4072,7 +4072,7 @@ function_decl_diff::added_parms() const
/// @return the length of the changes of the function.
unsigned
function_decl_diff::length() const
{return changed_parms().size() + removed_parms().size() + added_parms().size();}
{return *first_function_decl() != *second_function_decl();}
/// Serialize a report of the changes encapsulated in the current
/// instance of function_decl_diff over to an output stream.

View File

@ -22,9 +22,11 @@ Variables changes summary: 0 Removed, 0 Changed, 0 Added variable
'method int S0::get_member0()'
1 member function change:
'method void S0::member0()' has some indirect sub-type changes:
'method void S0::member0()' access changed from 'private' to 'public'
[C]'method void S0::member0()' has some indirect sub-type changes:
'method void S0::member0()' access changed from 'private' to 'public'
1 Added function:
'method int S0::get_member0()