Don't pass around the target in order to define symbols; get it from

the parameters instead.
This commit is contained in:
Ian Lance Taylor
2008-01-26 01:17:45 +00:00
parent 8f0a6da7a9
commit 9b07f471e3
13 changed files with 98 additions and 109 deletions

View File

@@ -1415,8 +1415,8 @@ Versions::add_need(Stringpool* dynpool, const char* filename, const char* name,
// each new version definition.
unsigned int
Versions::finalize(const Target* target, Symbol_table* symtab,
unsigned int dynsym_index, std::vector<Symbol*>* syms)
Versions::finalize(Symbol_table* symtab, unsigned int dynsym_index,
std::vector<Symbol*>* syms)
{
gold_assert(!this->is_finalized_);
@@ -1432,7 +1432,7 @@ Versions::finalize(const Target* target, Symbol_table* symtab,
// Create a version symbol if necessary.
if (!(*p)->is_symbol_created())
{
Symbol* vsym = symtab->define_as_constant(target, (*p)->name(),
Symbol* vsym = symtab->define_as_constant((*p)->name(),
(*p)->name(), 0, 0,
elfcpp::STT_OBJECT,
elfcpp::STB_GLOBAL,