From 75f2446ec3c13eca3fe0c7cfdbb232e760d36596 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 14 Oct 2007 06:49:14 +0000 Subject: Run all error handling through an Errors object. Delete output file on error. --- gold/symtab.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gold/symtab.h') diff --git a/gold/symtab.h b/gold/symtab.h index 0dabd51..58c0e50 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -728,9 +728,11 @@ class Warnings void note_warnings(Symbol_table* symtab); - // Issue a warning for a reference to SYM at LOCATION. + // Issue a warning for a reference to SYM at RELINFO's location. + template void - issue_warning(const Symbol* sym, const std::string& location) const; + issue_warning(const Symbol* sym, const Relocate_info*, + size_t relnum, off_t reloffset) const; private: Warnings(const Warnings&); @@ -876,9 +878,12 @@ class Symbol_table // Possibly issue a warning for a reference to SYM at LOCATION which // is in OBJ. + template void - issue_warning(const Symbol* sym, const std::string& location) const - { this->warnings_.issue_warning(sym, location); } + issue_warning(const Symbol* sym, + const Relocate_info* relinfo, + size_t relnum, off_t reloffset) const + { this->warnings_.issue_warning(sym, relinfo, relnum, reloffset); } // Set the dynamic symbol indexes. INDEX is the index of the first // global dynamic symbol. Pointers to the symbols are stored into -- cgit v1.1