summaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2008-04-17 22:45:47 +0000
committerCary Coutant <ccoutant@google.com>2008-04-17 22:45:47 +0000
commite50199b0261d3f1c93b04f105be54edfdf8d1272 (patch)
tree925e63cf19409c8afcf78f781f18fbb3087c19bd /gold/options.cc
parent32860385cc8b7d048bdae8fb52936e50859d6ab2 (diff)
downloadbinutils-redhat-e50199b0261d3f1c93b04f105be54edfdf8d1272.tar.gz
* errors.cc (Errors::info): New function.
(gold_info): New function. * errors.h (Errors::info): New function. * gold.h (gold_info): New function. * object.cc (Input_objects::add_object): Print trace output. * options.cc (options::parse_set): New function. (General_options::parse_wrap): Deleted. (General_options::General_options): Deleted initializer. * options.h (options::String_set): New typedef. (options::parse_set): New function. (DEFINE_set): New macro. (General_options::wrap): Changed to use DEFINE_set. Changed callers of any_wrap_symbols and is_wrap_symbol. (General_options::trace, General_options::trace_symbol): New options. (General_options::any_wrap_symbols, General_options::is_wrap_symbol) (General_options::wrap_symbols_): Deleted. * symtab.cc (Symbol_table::add_from_object): Print trace output.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 2b4978accd..af024b5c93 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -222,6 +222,12 @@ parse_dirlist(const char*, const char* arg, Dir_list* retval)
}
void
+parse_set(const char*, const char* arg, String_set* retval)
+{
+ retval->insert(std::string(arg));
+}
+
+void
parse_choices(const char* option_name, const char* arg, const char** retval,
const char* choices[], int num_choices)
{
@@ -338,13 +344,6 @@ General_options::parse_version_script(const char*, const char* arg,
}
void
-General_options::parse_wrap(const char*, const char* arg,
- Command_line*)
-{
- this->wrap_symbols_.insert(std::string(arg));
-}
-
-void
General_options::parse_start_group(const char*, const char*,
Command_line* cmdline)
{
@@ -601,7 +600,7 @@ namespace gold
General_options::General_options()
: execstack_status_(General_options::EXECSTACK_FROM_INPUT), static_(false),
- do_demangle_(false), wrap_symbols_()
+ do_demangle_(false)
{
}