modernize-constexpr

This commit is contained in:
Serge Lamikhov-Center 2021-09-07 09:31:50 +03:00
parent f8e870823d
commit c99baabc0b
3 changed files with 726 additions and 705 deletions

File diff suppressed because it is too large Load Diff

View File

@ -86,7 +86,7 @@ template <class S> class relocation_section_accessor_template
bool get_entry( Elf_Xword index,
Elf64_Addr& offset,
Elf_Word& symbol,
Elf_Word& type,
unsigned char& type,
Elf_Sxword& addend ) const
{
if ( index >= get_entries_num() ) { // Is index valid
@ -122,7 +122,7 @@ template <class S> class relocation_section_accessor_template
Elf64_Addr& offset,
Elf64_Addr& symbolValue,
std::string& symbolName,
Elf_Word& type,
unsigned char& type,
Elf_Sxword& addend,
Elf_Sxword& calcValue ) const
{
@ -188,7 +188,7 @@ template <class S> class relocation_section_accessor_template
bool set_entry( Elf_Xword index,
Elf64_Addr offset,
Elf_Word symbol,
Elf_Word type,
unsigned char type,
Elf_Sxword addend )
{
if ( index >= get_entries_num() ) { // Is index valid
@ -295,7 +295,7 @@ template <class S> class relocation_section_accessor_template
{
Elf64_Addr offset;
Elf_Word symbol;
Elf_Word rtype;
unsigned char rtype;
Elf_Sxword addend;
for ( Elf_Word i = 0; i < get_entries_num(); i++ ) {
get_entry( i, offset, symbol, rtype, addend );
@ -321,7 +321,7 @@ template <class S> class relocation_section_accessor_template
void generic_get_entry_rel( Elf_Xword index,
Elf64_Addr& offset,
Elf_Word& symbol,
Elf_Word& type,
unsigned char& type,
Elf_Sxword& addend ) const
{
const endianess_convertor& convertor = elf_file.get_convertor();
@ -341,7 +341,7 @@ template <class S> class relocation_section_accessor_template
void generic_get_entry_rela( Elf_Xword index,
Elf64_Addr& offset,
Elf_Word& symbol,
Elf_Word& type,
unsigned char& type,
Elf_Sxword& addend ) const
{
const endianess_convertor& convertor = elf_file.get_convertor();
@ -361,7 +361,7 @@ template <class S> class relocation_section_accessor_template
void generic_set_entry_rel( Elf_Xword index,
Elf64_Addr offset,
Elf_Word symbol,
Elf_Word type,
unsigned char type,
Elf_Sxword )
{
const endianess_convertor& convertor = elf_file.get_convertor();
@ -386,7 +386,7 @@ template <class S> class relocation_section_accessor_template
void generic_set_entry_rela( Elf_Xword index,
Elf64_Addr offset,
Elf_Word symbol,
Elf_Word type,
unsigned char type,
Elf_Sxword addend )
{
const endianess_convertor& convertor = elf_file.get_convertor();

View File

@ -4,4 +4,4 @@ add_subdirectory(elfdump)
add_subdirectory(tutorial)
add_subdirectory(write_obj)
add_subdirectory(writer)
add_subdirectory(c_wrapper)
#add_subdirectory(c_wrapper)