From 5ac169d4b6e2d88c670298a3246fc2a5d8a94aa4 Mon Sep 17 00:00:00 2001 From: Doug Kwan Date: Wed, 20 Jan 2010 17:29:52 +0000 Subject: 2010-01-20 Doug Kwan * arm.cc (Target_arm::Arm_input_section_map): Change key type from Input_section_specifier to Section_id. (Target_arm::new_arm_input_section: Adjust code for change of key type. (Target_arm::find_arm_input_section): Ditto. * gc.h (object.h): Include for Section_id nand Section_id_hash. (Section_id): Remove. (Garbage_collection::Section_id_hash): Remove. * icf.h (object.h): Include for Section_id nand Section_id_hash. (Section_id): Remove. (Icf::Section_id_hash): Remove. * object.h (Section_id, Const_section_id, Section_id_hash, Const_section_id_hash): New type definitions. * output.cc (Output_section::add_relaxed_input_section): Change to use Const_section_id instead of Input_section_specifier as key type. (Output_section::add_merge_input_section): Ditto. (Output_section::build_relaxation_map): Change to use Section_id instead of Input_section_specifier as key type. (Output_section::convert_input_sections_in_list_to_relaxed_sections): Ditto. (Output_section::convert_input_sections_to_relaxed_sections): Change to use Const_section_id instead of Input_section_specifier as key type. (Output_section::find_merge_section): Ditto. (Output_section::find_relaxed_input_section): Ditto. * output.h (Input_section_specifier): Remove class. (Output_section::Output_section_data_by_input_section_map): Change key type to Const_section_id. (Output_section::Output_relaxed_input_section_by_input_section_map): Ditto. (Output_section::Relaxation_map): Change key type to Section_id. --- gold/icf.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'gold/icf.h') diff --git a/gold/icf.h b/gold/icf.h index de0fbe0..e336572 100644 --- a/gold/icf.h +++ b/gold/icf.h @@ -27,6 +27,7 @@ #include "elfcpp.h" #include "symtab.h" +#include "object.h" namespace gold { @@ -35,17 +36,9 @@ class Object; class Input_objects; class Symbol_table; -typedef std::pair Section_id; - class Icf { public: - struct Section_id_hash - { - size_t operator()(const Section_id& loc) const - { return reinterpret_cast(loc.first) ^ loc.second; } - }; - typedef std::vector Sections_reachable_list; typedef std::vector Symbol_info; typedef std::vector > Addend_info; -- cgit v1.1