From c5818ff112aac72067c827a4a4fad732eae40741 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Thu, 17 Apr 2008 22:45:47 +0000 Subject: * 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. --- gold/errors.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gold/errors.cc') diff --git a/gold/errors.cc b/gold/errors.cc index c43e9f3e91..01ce97f5eb 100644 --- a/gold/errors.cc +++ b/gold/errors.cc @@ -110,6 +110,15 @@ Errors::warning(const char* format, va_list args) this->increment_counter(&this->warning_count_); } +// Print an informational message. + +void +Errors::info(const char* format, va_list args) +{ + vfprintf(stderr, format, args); + fputc('\n', stderr); +} + // Report an error at a reloc location. template @@ -219,6 +228,17 @@ gold_warning(const char* format, ...) va_end(args); } +// Print an informational message. + +void +gold_info(const char* format, ...) +{ + va_list args; + va_start(args, format); + parameters->errors()->info(format, args); + va_end(args); +} + // Report an error at a location. template -- cgit v1.2.1