diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-26 07:01:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-26 07:01:35 +0000 |
commit | 9025d29d14ae287d2bc338ef1b0bfa043799e15c (patch) | |
tree | 7802e1942ac6c30223c2bd6b077dc3a64e1d9280 /gold/symtab.h | |
parent | cc941dee4852b197c1437b2eb28eafb0c9ccaff9 (diff) | |
download | gdb-9025d29d14ae287d2bc338ef1b0bfa043799e15c.zip gdb-9025d29d14ae287d2bc338ef1b0bfa043799e15c.tar.gz gdb-9025d29d14ae287d2bc338ef1b0bfa043799e15c.tar.bz2 |
Put size and endianness in parameters.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r-- | gold/symtab.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/gold/symtab.h b/gold/symtab.h index 36414bc..918c974 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -851,11 +851,6 @@ class Symbol_table Symbol* resolve_forwards(const Symbol* from) const; - // Return the bitsize (32 or 64) of the symbols in the table. - int - get_size() const - { return this->size_; } - // Return the sized version of a symbol in this table. template<int size> Sized_symbol<size>* @@ -917,18 +912,12 @@ class Symbol_table // Write out a section symbol. Return the updated offset. void - write_section_symbol(const Target*, const Output_section*, Output_file*, - off_t) const; + write_section_symbol(const Output_section*, Output_file*, off_t) const; private: Symbol_table(const Symbol_table&); Symbol_table& operator=(const Symbol_table&); - // Set the size (32 or 64) of the symbols in the table. - void - set_size(int size) - { this->size_ = size; } - // Make FROM a forwarder symbol to TO. void make_forwarder(Symbol* from, Symbol* to); @@ -1055,9 +1044,6 @@ class Symbol_table typedef std::vector<Symbol*> Commons_type; - // The size of the symbols in the symbol table (32 or 64). - int size_; - // We increment this every time we see a new undefined symbol, for // use in archive groups. int saw_undefined_; @@ -1108,7 +1094,7 @@ template<int size> Sized_symbol<size>* Symbol_table::get_sized_symbol(Symbol* sym ACCEPT_SIZE) const { - gold_assert(size == this->get_size()); + gold_assert(size == parameters->get_size()); return static_cast<Sized_symbol<size>*>(sym); } @@ -1116,7 +1102,7 @@ template<int size> const Sized_symbol<size>* Symbol_table::get_sized_symbol(const Symbol* sym ACCEPT_SIZE) const { - gold_assert(size == this->get_size()); + gold_assert(size == parameters->get_size()); return static_cast<const Sized_symbol<size>*>(sym); } |