OLD | NEW |
1 /* Calculate branch probabilities, and basic block execution counts. | 1 /* Calculate branch probabilities, and basic block execution counts. |
2 Copyright (C) 2012. Free Software Foundation, Inc. | 2 Copyright (C) 2012. Free Software Foundation, Inc. |
3 Contributed by Dehao Chen (dehao@google.com) | 3 Contributed by Dehao Chen (dehao@google.com) |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
8 the terms of the GNU General Public License as published by the Free | 8 the terms of the GNU General Public License as published by the Free |
9 Software Foundation; either version 3, or (at your option) any later | 9 Software Foundation; either version 3, or (at your option) any later |
10 version. | 10 version. |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 gcov_unsigned_t is_primary) | 435 gcov_unsigned_t is_primary) |
436 { | 436 { |
437 unsigned i; | 437 unsigned i; |
438 size_t info_sz; | 438 size_t info_sz; |
439 | 439 |
440 info_sz = sizeof (struct gcov_module_info) + | 440 info_sz = sizeof (struct gcov_module_info) + |
441 sizeof (void *) * afdo_module_num_strings (module); | 441 sizeof (void *) * afdo_module_num_strings (module); |
442 *module_info = XCNEWVAR (struct gcov_module_info, info_sz); | 442 *module_info = XCNEWVAR (struct gcov_module_info, info_sz); |
443 (*module_info)->ident = module->ident; | 443 (*module_info)->ident = module->ident; |
444 (*module_info)->is_primary = is_primary; | 444 (*module_info)->is_primary = is_primary; |
445 (*module_info)->is_exported = is_primary ? module->exported : 1; | 445 (*module_info)->flags = is_primary ? module->exported : 1; |
446 (*module_info)->source_filename = module->name; | 446 (*module_info)->source_filename = module->name; |
447 (*module_info)->num_quote_paths = module->num_quote_paths; | 447 (*module_info)->num_quote_paths = module->num_quote_paths; |
448 (*module_info)->num_bracket_paths = module->num_bracket_paths; | 448 (*module_info)->num_bracket_paths = module->num_bracket_paths; |
449 (*module_info)->num_cpp_defines = module->num_cpp_defines; | 449 (*module_info)->num_cpp_defines = module->num_cpp_defines; |
450 (*module_info)->num_cpp_includes = module->num_cpp_includes; | 450 (*module_info)->num_cpp_includes = module->num_cpp_includes; |
451 (*module_info)->num_cl_args = module->num_cl_args; | 451 (*module_info)->num_cl_args = module->num_cl_args; |
452 for (i = 0; i < afdo_module_num_strings (module); i++) | 452 for (i = 0; i < afdo_module_num_strings (module); i++) |
453 (*module_info)->string_array[i] = | 453 (*module_info)->string_array[i] = |
454 module->strings[module->num_aux_modules + i]; | 454 module->strings[module->num_aux_modules + i]; |
455 } | 455 } |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 NULL, /* next */ | 1711 NULL, /* next */ |
1712 0, /* static_pass_number */ | 1712 0, /* static_pass_number */ |
1713 TV_IPA_AUTOFDO, /* tv_id */ | 1713 TV_IPA_AUTOFDO, /* tv_id */ |
1714 0, /* properties_required */ | 1714 0, /* properties_required */ |
1715 0, /* properties_provided */ | 1715 0, /* properties_provided */ |
1716 0, /* properties_destroyed */ | 1716 0, /* properties_destroyed */ |
1717 0, /* todo_flags_start */ | 1717 0, /* todo_flags_start */ |
1718 TODO_dump_func /* todo_flags_finish */ | 1718 TODO_dump_func /* todo_flags_finish */ |
1719 } | 1719 } |
1720 }; | 1720 }; |
OLD | NEW |