From 7fdd3e2c61874abd631de5038d846dffb6f5bc5f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 3 Sep 2009 11:32:59 -0700 Subject: PR10573: Squash duplicate inline instances In C++, identical functions included in multiple CUs will get merged at link time into a single instance. We need to make sure that inlines within those merged functions are not probed multiple times. * tapsets.cxx (inline_instance_info::operator<): Used for set support. (dwarf_query::handle_query_module): Clear inline_dupes on each module. (query_dwarf_inline_instance): Squash this inline instance if it's already in the inline_dupes set. --- dwflpp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'dwflpp.h') diff --git a/dwflpp.h b/dwflpp.h index 431f3c4b..34531071 100644 --- a/dwflpp.h +++ b/dwflpp.h @@ -139,6 +139,7 @@ struct inline_instance_info { std::memset(&die, 0, sizeof(die)); } + bool operator<(const inline_instance_info& other) const; std::string name; char const * decl_file; int decl_line; -- cgit