Emit the proper module name in LIPO profile-use mode. Passes regression tests, ok for google branches?
Thanks, Teresa 2014-06-24 Teresa Johnson <tejohn...@google.com> * coverage.c (emit_function_name): Emit module name in LIPO mode. Index: coverage.c =================================================================== --- coverage.c (revision 211893) +++ coverage.c (working copy) @@ -1882,7 +1882,9 @@ void emit_function_name (void) { fprintf (stderr, "Module %s FuncId %u Name %s\n", - main_input_file_name, + (L_IPO_COMP_MODE + ? get_module_name (FUNC_DECL_MODULE_ID (cfun)) + : main_input_file_name), FUNC_DECL_FUNC_ID (cfun), IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl))); } -- Teresa Johnson | Software Engineer | tejohn...@google.com | 408-460-2413