projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Elf_file::section_name() a const function, so that it can be used in
[external/binutils.git]
/
gold
/
incremental.cc
diff --git
a/gold/incremental.cc
b/gold/incremental.cc
index
2345cf8
..
bbc055c
100644
(file)
--- a/
gold/incremental.cc
+++ b/
gold/incremental.cc
@@
-2270,10
+2270,10
@@
Sized_relobj_incr<size, big_endian>::do_section_size(unsigned int)
template<int size, bool big_endian>
std::string
template<int size, bool big_endian>
std::string
-Sized_relobj_incr<size, big_endian>::do_section_name(unsigned int shndx)
+Sized_relobj_incr<size, big_endian>::do_section_name(unsigned int shndx)
const
{
{
- Output_sections& out_sections(this->output_sections());
- Output_section* os = out_sections[shndx];
+
const
Output_sections& out_sections(this->output_sections());
+
const
Output_section* os = out_sections[shndx];
if (os == NULL)
return NULL;
return os->name();
if (os == NULL)
return NULL;
return os->name();
@@
-2858,7
+2858,7
@@
Sized_incr_dynobj<size, big_endian>::do_section_size(unsigned int)
template<int size, bool big_endian>
std::string
template<int size, bool big_endian>
std::string
-Sized_incr_dynobj<size, big_endian>::do_section_name(unsigned int)
+Sized_incr_dynobj<size, big_endian>::do_section_name(unsigned int)
const
{
gold_unreachable();
}
{
gold_unreachable();
}