diff options
author | Rafael Ávila de Espíndola <rafael.espindola@gmail.com> | 2015-03-23 09:16:49 -0400 |
---|---|---|
committer | Rafael Ávila de Espíndola <rafael.espindola@gmail.com> | 2015-03-23 09:16:49 -0400 |
commit | 67f95b96b4d5e8e19520d94bebae92db2f67af74 (patch) | |
tree | c98a68289748714bf336f1e5797718ce3e27cbca /gold/object.cc | |
parent | 99067e2973a6bb1d3a52caafb479ebdc1a420580 (diff) | |
download | gdb-67f95b96b4d5e8e19520d94bebae92db2f67af74.zip gdb-67f95b96b4d5e8e19520d94bebae92db2f67af74.tar.gz gdb-67f95b96b4d5e8e19520d94bebae92db2f67af74.tar.bz2 |
Remove is_merge_section_for.
Now that Input_merge_map has an Output_section_data, we can use it in
implementing find_merge_section and replace the only use of is_merge_section_for
with it.
Diffstat (limited to 'gold/object.cc')
-rw-r--r-- | gold/object.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gold/object.cc b/gold/object.cc index f983b66..cbe73ca 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -303,14 +303,12 @@ Relobj::merge_output_offset(unsigned int shndx, section_offset_type offset, return object_merge_map->get_output_offset(shndx, offset, poutput); } -bool -Relobj::is_merge_section_for(const Output_section_data* output_data, - unsigned int shndx) const { +const Output_section_data* +Relobj::find_merge_section(unsigned int shndx) const { Object_merge_map* object_merge_map = this->object_merge_map_; if (object_merge_map == NULL) - return false; - return object_merge_map->is_merge_section_for(output_data, shndx); - + return NULL; + return object_merge_map->find_merge_section(shndx); } // To copy the symbols data read from the file to a local data structure. |