From: Gabriel Corona Date: Tue, 21 Jul 2015 13:43:24 +0000 (+0200) Subject: [mc] Remove MC_post_process_functions() X-Git-Tag: v3_12~438^2~22 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/078620d38f63dd16f8494822f082775606ad8554 [mc] Remove MC_post_process_functions() --- diff --git a/src/mc/mc_dwarf.cpp b/src/mc/mc_dwarf.cpp index cd1f9d1755..eae3a5a445 100644 --- a/src/mc/mc_dwarf.cpp +++ b/src/mc/mc_dwarf.cpp @@ -1109,13 +1109,6 @@ static void mc_post_process_scope(mc_object_info_t info, mc_frame_t scope) } -static void MC_post_process_functions(mc_object_info_t info) -{ - for (auto& entry : info->subprograms) - mc_post_process_scope(info, &entry.second); -} - - /** \brief Fill/lookup the "subtype" field. */ static void MC_resolve_subtype(mc_object_info_t info, mc_type_t type) @@ -1164,7 +1157,8 @@ std::shared_ptr MC_find_object_info( MC_dwarf_get_variables(result.get()); MC_post_process_variables(result.get()); MC_post_process_types(result.get()); - MC_post_process_functions(result.get()); + for (auto& entry : result.get()->subprograms) + mc_post_process_scope(result.get(), &entry.second); MC_make_functions_index(result.get()); return std::move(result); }