2010-10-02 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Sat, 2 Oct 2010 09:35:20 +0000 (09:35 +0000)
committerDoug Kwan <dougkwan@google.com>
Sat, 2 Oct 2010 09:35:20 +0000 (09:35 +0000)
* 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.

gold/ChangeLog
gold/symtab.cc
gold/symtab.h

index d03aca425442176ed22853e15fd07fb9ae9e4d99..03c5fc3127aa82acef760410d8f78d074790faa2 100644 (file)
@@ -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.
index d8cda2d105cb92a604659314776337d832551ab4..75ed7f633bcbfbccae8a3d9c07e0caf5886369e9 100644 (file)
@@ -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.
 
index e355b2a75cd6b89d1a6e3c823b42259f7a1fb1b6..6542edbe5e8b324bf9801615b634388126b9a143 100644 (file)
@@ -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
This page took 0.032092 seconds and 4 git commands to generate.