aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-20 01:29:04 +0000
committerIan Lance Taylor <iant@google.com>2007-12-20 01:29:04 +0000
commit8f00aeb8a6c1aa281ec1697f1d4fe8c7054273e7 (patch)
tree85c6ae022b67ee83b104c01deb91404be291836d /gold/merge.cc
parent*** empty log message *** (diff)
downloadbinutils-gdb-8f00aeb8a6c1aa281ec1697f1d4fe8c7054273e7.tar.gz
binutils-gdb-8f00aeb8a6c1aa281ec1697f1d4fe8c7054273e7.tar.bz2
binutils-gdb-8f00aeb8a6c1aa281ec1697f1d4fe8c7054273e7.zip
Make functions on hot path inline. Remove a mistaken virtual
declaration.
Diffstat (limited to 'gold/merge.cc')
-rw-r--r--gold/merge.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/merge.cc b/gold/merge.cc
index 01f2a9e1380..abe625ed873 100644
--- a/gold/merge.cc
+++ b/gold/merge.cc
@@ -234,7 +234,7 @@ Object_merge_map::add_mapping(const Merge_map* merge_map, unsigned int shndx,
// Get the output offset for an input address.
-bool
+inline bool
Object_merge_map::get_output_offset(const Merge_map* merge_map,
unsigned int shndx,
section_offset_type input_offset,
@@ -300,7 +300,7 @@ Merge_map::add_mapping(Relobj* object, unsigned int shndx,
// *OUTPUT_OFFSET to the offset in the output section. This returns
// true if the mapping is known, false otherwise.
-bool
+inline bool
Merge_map::get_output_offset(const Relobj* object, unsigned int shndx,
section_offset_type offset,
section_offset_type* output_offset) const