mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
2010-10-02 Doug Kwan <dougkwan@google.com>
* symtab.cc (Symbol_table::Symbol_table_hash::operator()): Move defintion to symtab.h * symtab.h (Symbol_table::Symbol_table_hash::operator()): Change declaration to defintion.
This commit is contained in:
parent
9ce00134f4
commit
a9bfd952d1
@ -1,3 +1,10 @@
|
||||
2010-10-02 Doug Kwan <dougkwan@google.com>
|
||||
|
||||
* symtab.cc (Symbol_table::Symbol_table_hash::operator()): Move
|
||||
defintion to symtab.h
|
||||
* symtab.h (Symbol_table::Symbol_table_hash::operator()): Change
|
||||
declaration to defintion.
|
||||
|
||||
2010-10-01 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* expression.cc (eval): Replace dummy argument with NULL.
|
||||
|
@ -501,14 +501,6 @@ Symbol_table::~Symbol_table()
|
||||
{
|
||||
}
|
||||
|
||||
// The hash function. The key values are Stringpool keys.
|
||||
|
||||
inline size_t
|
||||
Symbol_table::Symbol_table_hash::operator()(const Symbol_table_key& key) const
|
||||
{
|
||||
return key.first ^ key.second;
|
||||
}
|
||||
|
||||
// The symbol table key equality function. This is called with
|
||||
// Stringpool keys.
|
||||
|
||||
|
@ -1545,10 +1545,14 @@ class Symbol_table
|
||||
|
||||
typedef std::pair<Stringpool::Key, Stringpool::Key> Symbol_table_key;
|
||||
|
||||
// The hash function. The key values are Stringpool keys.
|
||||
struct Symbol_table_hash
|
||||
{
|
||||
size_t
|
||||
operator()(const Symbol_table_key&) const;
|
||||
inline size_t
|
||||
operator()(const Symbol_table_key& key) const
|
||||
{
|
||||
return key.first ^ key.second;
|
||||
}
|
||||
};
|
||||
|
||||
struct Symbol_table_eq
|
||||
|
Loading…
Reference in New Issue
Block a user