PR 6048
[binutils-gdb.git] / gold / errors.cc
index c43e9f3e912f77a7829bc1691b8e14b78f549fec..01ce97f5eb93b65249e94a1b6bb0c66429e0f0da 100644 (file)
@@ -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<int size, bool big_endian>
@@ -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<int size, bool big_endian>