mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-10 16:47:52 +00:00
Cleanup class_decl inifite comparison detection
We recently used a new type interned_string_set_type to detect infinite comparison of function_type type. This patch uses the same type for class_decl infinite comparison detection. * src/abg-ir.cc (environment::priv::classes_being_compared_): Make this use the new interned_string_set_type type. (class_decl::priv::{mark_as_being_compared, comparison_started}): Adjust. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
e083531584
commit
8bb9d3aedc
@ -2042,7 +2042,7 @@ struct environment::priv
|
||||
canonical_types_map_type canonical_types_;
|
||||
type_decl_sptr void_type_decl_;
|
||||
type_decl_sptr variadic_marker_type_decl_;
|
||||
interned_string_bool_map_type classes_being_compared_;
|
||||
interned_string_set_type classes_being_compared_;
|
||||
interned_string_set_type fn_types_being_compared_;
|
||||
vector<type_base_sptr> extra_live_types_;
|
||||
interned_string_pool string_pool_;
|
||||
@ -12245,7 +12245,7 @@ struct class_decl::priv
|
||||
{
|
||||
const environment* env = klass.get_environment();
|
||||
assert(env);
|
||||
env->priv_->classes_being_compared_[klass.get_qualified_name()] = true;
|
||||
env->priv_->classes_being_compared_.insert(klass.get_qualified_name());
|
||||
}
|
||||
|
||||
/// Mark a class as being currently compared using the class_decl==
|
||||
@ -12318,7 +12318,7 @@ struct class_decl::priv
|
||||
{
|
||||
const environment* env = klass.get_environment();
|
||||
assert(env);
|
||||
interned_string_bool_map_type& c = env->priv_->classes_being_compared_;
|
||||
interned_string_set_type& c = env->priv_->classes_being_compared_;
|
||||
return (c.find(klass.get_qualified_name()) != c.end());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user