Make Elf_file::section_name() a const function, so that it can be used in
authorCary Coutant <ccoutant@google.com>
Wed, 2 Jul 2014 23:12:51 +0000 (16:12 -0700)
committerCary Coutant <ccoutant@google.com>
Tue, 2 Sep 2014 22:44:58 +0000 (15:44 -0700)
commit54674d38930c7da1af518510fede6f700f5ca596
treeaef7ff0038d0040cafb00667066b48bc874b17bb
parent9860cbcfb60bdae2f9800e6a6ea5f21ef1507d08
Make Elf_file::section_name() a const function, so that it can be used in
places where we have only a const Elf_file*.

elfcpp/
* elfcpp_file.h (Elf_file::shnum): New const function.
(Elf_file::shstrndx): New const function.
(Elf_file::large_shndx_offset): New const function.
(Elf_file::section_name): Add const attribute.
(Elf_file::section_header_offset): Likewise.

gold/
* dwp.cc (Sized_relobj_dwo::do_section_name): Add const attribute.
* dynobj.h (Sized_dynobj::do_section_name): Likewise.
* incremental.cc (Sized_relobj_incr::do_section_name): Likewise.
(Sized_incr_dynobj::do_section_name): Likewise.
* incremental.h (Sized_relobj_incr::do_section_name): Likewise.
(Sized_incr_dynobj::do_section_name): Likewise.
* object.h (Object::section_name): Likewise.
(Object::do_section_name): Likewise.
(Sized_relobj_file::do_section_name): Likewise.
* plugin.cc (Sized_pluginobj::do_section_name): Likewise.
* plugin.h (Sized_pluginobj::do_section_name): Likewise.
elfcpp/ChangeLog
elfcpp/elfcpp_file.h
gold/ChangeLog
gold/dwp.cc
gold/dynobj.h
gold/incremental.cc
gold/incremental.h
gold/object.h
gold/plugin.cc
gold/plugin.h
This page took 0.025925 seconds and 4 git commands to generate.