OSDN Git Service

* layout.cc (Layout::find_or_add_kept_section): New function.
authorian <ian>
Sun, 1 Mar 2009 22:22:02 +0000 (22:22 +0000)
committerian <ian>
Sun, 1 Mar 2009 22:22:02 +0000 (22:22 +0000)
commit2f2baee3e61b9f1f51fc90578e2d9575ba28d826
tree58c6a7cbce86525207a99bbe6561ca9ae0f6feb9
parent41940666c3b0daf6372ed7084af035cfadc53aed
* 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