aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-22 00:45:46 +0000
committerIan Lance Taylor <iant@google.com>2007-11-22 00:45:46 +0000
commitd8a88976788511b8a3476bbba45fc185bea1ab07 (patch)
tree7b4a88d358af51c4786262f7b95ddc3f96ff87b1 /gold
parentc79126688f8211ab17a893c5e80b09811d424fc1 (diff)
downloadgdb-d8a88976788511b8a3476bbba45fc185bea1ab07.zip
gdb-d8a88976788511b8a3476bbba45fc185bea1ab07.tar.gz
gdb-d8a88976788511b8a3476bbba45fc185bea1ab07.tar.bz2
Make Merge_key_less operator() inline.
Diffstat (limited to 'gold')
-rw-r--r--gold/merge.cc2
-rw-r--r--gold/merge.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gold/merge.cc b/gold/merge.cc
index 15d3b7c..0c4256b 100644
--- a/gold/merge.cc
+++ b/gold/merge.cc
@@ -35,7 +35,7 @@ namespace gold
// Sort the entries in a merge mapping. The key is an input object, a
// section index in that object, and an offset in that section.
-bool
+inline bool
Merge_map::Merge_key_less::operator()(const Merge_key& mk1,
const Merge_key& mk2) const
{
diff --git a/gold/merge.h b/gold/merge.h
index 630b593..1f750c5 100644
--- a/gold/merge.h
+++ b/gold/merge.h
@@ -70,7 +70,7 @@ class Merge_map
struct Merge_key_less
{
- bool
+ inline bool
operator()(const Merge_key&, const Merge_key&) const;
};