* layout.cc (Layout::find_or_add_kept_section): New function.
authorIan Lance Taylor <ian@airs.com>
Sun, 1 Mar 2009 22:22:02 +0000 (22:22 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 1 Mar 2009 22:22:02 +0000 (22:22 +0000)
commit8a4c0b0d7ee3f258acf37d6d1e5e34ae54f86391
treea56d1ab9b0fe09abde5b5526bf5d3d2d3f460b9f
parentd1bbb13a635b6bdc15dd0e597a8424a5a2d65610
* layout.cc (Layout::find_or_add_kept_section): New function.
(Layout::add_comdat): Removed.
* layout.h (struct Kept_section): Move out of class Layout.
Remove trailing underscores from field names.  Add group_sections
field.  Rename group_ field to is_group.  Change all uses.
(class Layout): Declare find_or_add_kept_section, not add_comdat.
* object.cc (Sized_relobj::Sized_relobj): Don't initialize
comdat_groups_ field.
(Sized_relobj::include_section_group): Use
find_or_add_kept_section and Kept_section::group_sections.
(Sized_relobj::include_linkonce_section): Likewise.
* object.cc (class Sized_relobj): Don't define Comdat_group or
Comdat_group_table.  Remove find_comdat_group and
add_comdat_group.  Remove comdat_groups_ field.
* plugin.cc (include_comdat_group): Use
Layout::find_or_add_kept_section.
gold/ChangeLog
gold/layout.cc
gold/layout.h
gold/object.cc
gold/object.h
gold/plugin.cc