diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-01-24 21:48:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-01-24 21:48:40 +0000 |
commit | 0f3b89d87a62ea42186fb5ba525dadde36182a97 (patch) | |
tree | a1ba50cb45c68cfeaf4d02005a29a693f3d9a687 /gold/archive.h | |
parent | 314d366acd62a3de1ff8fff788d5b369c2f2d36c (diff) | |
download | gdb-0f3b89d87a62ea42186fb5ba525dadde36182a97.zip gdb-0f3b89d87a62ea42186fb5ba525dadde36182a97.tar.gz gdb-0f3b89d87a62ea42186fb5ba525dadde36182a97.tar.bz2 |
* plugin.cc (class Plugin_rescan): Define new class.
(Plugin_manager::claim_file): Set any_claimed_.
(Plugin_manager::save_archive): New function.
(Plugin_manager::save_input_group): New function.
(Plugin_manager::all_symbols_read): Create Plugin_rescan task if
necessary.
(Plugin_manager::new_undefined_symbol): New function.
(Plugin_manager::rescan): New function.
(Plugin_manager::rescannable_defines): New function.
(Plugin_manager::add_input_file): Set any_added_.
* plugin.h (class Plugin_manager): define new fields rescannable_,
undefined_symbols_, any_claimed_, and any_added_. Declare
Plugin_rescan as friend. Declare new functions.
(Plugin_manager::Rescannable): Define type.
(Plugin_manager::Rescannable_list): Define type.
(Plugin_manager::Undefined_symbol_list): Define type.
(Plugin_manager::Plugin_manager): Initialize new fields.
* archive.cc (Archive::defines_symbol): New function.
(Add_archive_symbols::run): Pass archive to plugins if any.
* archive.h (class Archive): Declare defines_symbol.
* readsyms.cc (Input_group::~Input_group): New function.
(Finish_group::run): Pass input_group to plugins if any.
* readsyms.h (class Input_group): Declare destructor.
* symtab.cc (add_from_object): Pass undefined symbol to plugins if
any.
Diffstat (limited to 'gold/archive.h')
-rw-r--r-- | gold/archive.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/archive.h b/gold/archive.h index b4db76d..c5ba114 100644 --- a/gold/archive.h +++ b/gold/archive.h @@ -1,6 +1,6 @@ // archive.h -- archive support for gold -*- C++ -*- -// Copyright 2006, 2007, 2008, 2010 Free Software Foundation, Inc. +// Copyright 2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. @@ -152,6 +152,10 @@ class Archive bool add_symbols(Symbol_table*, Layout*, Input_objects*, Mapfile*); + // Return whether the archive defines the symbol. + bool + defines_symbol(Symbol*) const; + // Dump statistical information to stderr. static void print_stats(); |