Make reference_type_def::get_pointed_to_type() return a type_base_sptr
rather than a shared_ptr<type_base>.
* src/abg-ir.cc (reference_type_def::get_pointed_to_type): Return
a type_base_sptr.
* src/abg-comparison.cc (diff::is_filtered_out): Fix a comment.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
if (get_category() & SUPPRESSED_CATEGORY)
return true;
- // We don't want to display redundant function or variable diff
+ // We don't want to display redundant top-level function or variable
+ // diff nodes, when the user asked to avoid seeing redundant diff
// nodes.
if ((dynamic_cast<const function_decl_diff*>(this)
|| (dynamic_cast<const var_diff*>(this)
return *this == *other;
}
-shared_ptr<type_base>
+type_base_sptr
reference_type_def::get_pointed_to_type() const
{
if (pointed_to_type_.expired())