]> sourceware.org Git - libabigail.git/commitdiff
Rename elf_symbol::get_is_defined() to elf_symbol::is_defined()
authorDodji Seketeli <dodji@redhat.com>
Sun, 30 Nov 2014 09:51:01 +0000 (10:51 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sun, 30 Nov 2014 18:57:04 +0000 (19:57 +0100)
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>
include/abg-ir.h
src/abg-ir.cc
src/abg-writer.cc

index a17530128dd1b75ea35ee6d085b6ca6b6e62fa41..cc0a5a91aad0a1519e07db8d7a224f91c90337f2 100644 (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;
index bca50867bacc6debcaef4faad4dec69a70c2619e..1be28a05b58f60aa52d059a8c81da2e18fc833e9 100644 (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());
 }
 
index 7bd67ffed9793d350f43c18227d5cf0e6907eb39..d1fee8de1162cc91298e679aa5a06aff70cb7d45 100644 (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";
This page took 0.053514 seconds and 5 git commands to generate.