diff options
Diffstat (limited to 'gold/errors.cc')
-rw-r--r-- | gold/errors.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gold/errors.cc b/gold/errors.cc index 755e65d..156fd69 100644 --- a/gold/errors.cc +++ b/gold/errors.cc @@ -128,6 +128,15 @@ Errors::info(const char* format, va_list args) fputc('\n', stderr); } +// Print a trace message. + +void +Errors::trace(const char* format, va_list args) +{ + vfprintf(stdout, format, args); + fputc('\n', stdout); +} + // Report an error at a reloc location. template<int size, bool big_endian> @@ -275,6 +284,17 @@ gold_info(const char* format, ...) va_end(args); } +// Print a trace message (to stdout). + +void +gold_trace(const char* format, ...) +{ + va_list args; + va_start(args, format); + parameters->errors()->trace(format, args); + va_end(args); +} + // Report an error at a location. template<int size, bool big_endian> |