forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user