aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-12-14 19:53:05 +0000
committerIan Lance Taylor <ian@airs.com>2009-12-14 19:53:05 +0000
commit2ea97941102380c28117882600265c1187c6fc8b (patch)
tree8f423876f9f118fbe6f7959e60984cd13ad7430d /gold/symtab.h
parentab8e2090b6435823d50b29b7a255140ba6ea673f (diff)
downloadgdb-2ea97941102380c28117882600265c1187c6fc8b.zip
gdb-2ea97941102380c28117882600265c1187c6fc8b.tar.gz
gdb-2ea97941102380c28117882600265c1187c6fc8b.tar.bz2
Revert -Wshadow changes, all changes from:
2009-12-11 Doug Kwan <dougkwan@google.com> 2009-12-11 Nick Clifton <nickc@redhat.com> * configure.ac: Remove -Wshadow when setting WARN_CXXFLAGS.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 2beece8..c153150 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -220,8 +220,8 @@ class Symbol
// Set the visibility.
void
- set_visibility(elfcpp::STV vis)
- { this->visibility_ = vis; }
+ set_visibility(elfcpp::STV visibility)
+ { this->visibility_ = visibility; }
// Override symbol visibility.
void
@@ -368,15 +368,15 @@ class Symbol
unsigned int
got_offset(unsigned int got_type) const
{
- unsigned int got_off = this->got_offsets_.get_offset(got_type);
- gold_assert(got_off != -1U);
- return got_off;
+ unsigned int got_offset = this->got_offsets_.get_offset(got_type);
+ gold_assert(got_offset != -1U);
+ return got_offset;
}
// Set the GOT offset of this symbol.
void
- set_got_offset(unsigned int got_type, unsigned int got_off)
- { this->got_offsets_.set_offset(got_type, got_off); }
+ set_got_offset(unsigned int got_type, unsigned int got_offset)
+ { this->got_offsets_.set_offset(got_type, got_offset); }
// Return whether this symbol has an entry in the PLT section.
bool
@@ -393,10 +393,10 @@ class Symbol
// Set the PLT offset of this symbol.
void
- set_plt_offset(unsigned int plt_off)
+ set_plt_offset(unsigned int plt_offset)
{
this->has_plt_offset_ = true;
- this->plt_offset_ = plt_off;
+ this->plt_offset_ = plt_offset;
}
// Return whether this dynamic symbol needs a special value in the
@@ -432,10 +432,10 @@ class Symbol
bool is_ordinary;
if (this->source_ != FROM_OBJECT)
return this->source_ != IS_UNDEFINED;
- unsigned int sec_shndx = this->shndx(&is_ordinary);
+ unsigned int shndx = this->shndx(&is_ordinary);
return (is_ordinary
- ? sec_shndx != elfcpp::SHN_UNDEF
- : !Symbol::is_common_shndx(sec_shndx));
+ ? shndx != elfcpp::SHN_UNDEF
+ : !Symbol::is_common_shndx(shndx));
}
// Return true if this symbol is from a dynamic object.
@@ -481,8 +481,8 @@ class Symbol
if (this->source_ != FROM_OBJECT)
return false;
bool is_ordinary;
- unsigned int sec_shndx = this->shndx(&is_ordinary);
- return !is_ordinary && Symbol::is_common_shndx(sec_shndx);
+ unsigned int shndx = this->shndx(&is_ordinary);
+ return !is_ordinary && Symbol::is_common_shndx(shndx);
}
// Return whether this symbol can be seen outside this object.
@@ -1004,14 +1004,14 @@ class Sized_symbol : public Symbol
// Set the symbol size. This is used when resolving common symbols.
void
- set_symsize(Size_type symsz)
- { this->symsize_ = symsz; }
+ set_symsize(Size_type symsize)
+ { this->symsize_ = symsize; }
// Set the symbol value. This is called when we store the final
// values of the symbols into the symbol table.
void
- set_value(Value_type val)
- { this->value_ = val; }
+ set_value(Value_type value)
+ { this->value_ = value; }
// Allocate a common symbol by giving it a location in the output
// file.
@@ -1184,8 +1184,8 @@ class Symbol_table
~Symbol_table();
void
- set_icf(Icf* _icf)
- { this->icf_ = _icf;}
+ set_icf(Icf* icf)
+ { this->icf_ = icf;}
Icf*
icf() const
@@ -1196,8 +1196,8 @@ class Symbol_table
is_section_folded(Object* obj, unsigned int shndx) const;
void
- set_gc(Garbage_collection* garbage)
- { this->gc_ = garbage; }
+ set_gc(Garbage_collection* gc)
+ { this->gc_ = gc; }
Garbage_collection*
gc() const