Rename elf_symbol::get_is_defined() to elf_symbol::is_defined()

It's let's awkward to type if (elf_symbol->is_defined()); than
...->get_is_defined().  So I am going to the former.  A chance we
still can change ABI here ;-)

	* include/abg-ir.h (elf_symbol::get_is_defined): Rename into
	elf_symbol::is_defined.
	(elf_symbol::set_is_defined): Rename into elf_symbol::is_defined.
	* src/abg-ir.cc (elf_symbol::get_is_defined): Likewise, rename
	this into elf_symbol::is_defined.
	(elf_symbol::set_is_defined): Likewise, rename this into
	elf_symbol::is_defined.
	(elf_symbol::{elf_symbol, is_public}): Adjust.
	* src/abg-writer.cc (write_elf_symbol): Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-11-30 10:51:01 +01:00
parent d6bba81ac0
commit 6be1218195
3 changed files with 8 additions and 8 deletions

View File

@ -377,10 +377,10 @@ public:
set_version(const version& v);
bool
get_is_defined() const;
is_defined() const;
void
set_is_defined(bool d);
is_defined(bool d);
bool
is_public() const;

View File

@ -390,7 +390,7 @@ elf_symbol::elf_symbol(const elf_symbol& s)
s.get_name(),
s.get_type(),
s.get_binding(),
s.get_is_defined(),
s.is_defined(),
s.get_version()))
{
priv_->main_symbol_ = this;
@ -459,18 +459,18 @@ elf_symbol::set_version(const version& v)
}
bool
elf_symbol::get_is_defined() const
elf_symbol::is_defined() const
{return priv_->is_defined_;}
void
elf_symbol::set_is_defined(bool d)
elf_symbol::is_defined(bool d)
{priv_->is_defined_ = d;}
bool
elf_symbol::is_public() const
{
return (get_is_defined()
return (is_defined()
&& (get_binding() == GLOBAL_BINDING
|| get_binding() == WEAK_BINDING
|| get_binding() == GNU_UNIQUE_BINDING));
@ -684,7 +684,7 @@ elf_symbol::operator==(const elf_symbol& other) const
return (get_name() == other.get_name()
&& get_type() == other.get_type()
&& is_public() == other.is_public()
&& get_is_defined() == other.get_is_defined()
&& is_defined() == other.is_defined()
&& get_version() == other.get_version());
}

View File

@ -1448,7 +1448,7 @@ write_elf_symbol(const shared_ptr<elf_symbol> sym,
write_elf_symbol_aliases(*sym, o);
o << " is-defined='";
if (sym->get_is_defined())
if (sym->is_defined())
o << "yes";
else
o << "no";