aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-26 01:17:45 +0000
committerIan Lance Taylor <iant@google.com>2008-01-26 01:17:45 +0000
commit9b07f471e3360c9790f7ec83400e500e5f3098ca (patch)
treef2efce735a3f4314b493706a771566c5441f97be /gold/script.cc
parent8f0a6da7a9e9d4b8258af20cfb5db072ace0ba86 (diff)
downloadgdb-9b07f471e3360c9790f7ec83400e500e5f3098ca.zip
gdb-9b07f471e3360c9790f7ec83400e500e5f3098ca.tar.gz
gdb-9b07f471e3360c9790f7ec83400e500e5f3098ca.tar.bz2
Don't pass around the target in order to define symbols; get it from
the parameters instead.
Diffstat (limited to 'gold/script.cc')
-rw-r--r--gold/script.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 1661701..5b49a90 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -894,11 +894,10 @@ class Script_unblock : public Task
// been finalized.
void
-Symbol_assignment::add_to_table(Symbol_table* symtab, const Target* target)
+Symbol_assignment::add_to_table(Symbol_table* symtab)
{
elfcpp::STV vis = this->hidden_ ? elfcpp::STV_HIDDEN : elfcpp::STV_DEFAULT;
- this->sym_ = symtab->define_as_constant(target,
- this->name_.c_str(),
+ this->sym_ = symtab->define_as_constant(this->name_.c_str(),
NULL, // version
0, // value
0, // size
@@ -1036,13 +1035,12 @@ Script_options::add_assertion(Expression* check, const char* message,
// Add any symbols we are defining to the symbol table.
void
-Script_options::add_symbols_to_table(Symbol_table* symtab,
- const Target* target)
+Script_options::add_symbols_to_table(Symbol_table* symtab)
{
for (Symbol_assignments::iterator p = this->symbol_assignments_.begin();
p != this->symbol_assignments_.end();
++p)
- (*p)->add_to_table(symtab, target);
+ (*p)->add_to_table(symtab);
}
// Finalize symbol values.