Make functions on hot path inline. Remove a mistaken virtual
declaration.
This commit is contained in:
parent
007fb11822
commit
8f00aeb8a6
3 changed files with 4 additions and 4 deletions
|
@ -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.
|
// Get the output offset for an input address.
|
||||||
|
|
||||||
bool
|
inline bool
|
||||||
Object_merge_map::get_output_offset(const Merge_map* merge_map,
|
Object_merge_map::get_output_offset(const Merge_map* merge_map,
|
||||||
unsigned int shndx,
|
unsigned int shndx,
|
||||||
section_offset_type input_offset,
|
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
|
// *OUTPUT_OFFSET to the offset in the output section. This returns
|
||||||
// true if the mapping is known, false otherwise.
|
// true if the mapping is known, false otherwise.
|
||||||
|
|
||||||
bool
|
inline bool
|
||||||
Merge_map::get_output_offset(const Relobj* object, unsigned int shndx,
|
Merge_map::get_output_offset(const Relobj* object, unsigned int shndx,
|
||||||
section_offset_type offset,
|
section_offset_type offset,
|
||||||
section_offset_type* output_offset) const
|
section_offset_type* output_offset) const
|
||||||
|
|
|
@ -1349,7 +1349,7 @@ Output_section::Input_section::finalize_data_size()
|
||||||
|
|
||||||
// Try to turn an input offset into an output offset.
|
// Try to turn an input offset into an output offset.
|
||||||
|
|
||||||
bool
|
inline bool
|
||||||
Output_section::Input_section::output_offset(
|
Output_section::Input_section::output_offset(
|
||||||
const Relobj* object,
|
const Relobj* object,
|
||||||
unsigned int shndx,
|
unsigned int shndx,
|
||||||
|
|
|
@ -460,7 +460,7 @@ class Output_section_data : public Output_data
|
||||||
// the output section is known. If this function returns true, it
|
// the output section is known. If this function returns true, it
|
||||||
// sets *POUTPUT to the output offset. The value -1 indicates that
|
// sets *POUTPUT to the output offset. The value -1 indicates that
|
||||||
// this input offset is being discarded.
|
// this input offset is being discarded.
|
||||||
virtual bool
|
bool
|
||||||
output_offset(const Relobj* object, unsigned int shndx,
|
output_offset(const Relobj* object, unsigned int shndx,
|
||||||
section_offset_type offset,
|
section_offset_type offset,
|
||||||
section_offset_type *poutput) const
|
section_offset_type *poutput) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue