mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-08 07:38:06 +00:00
Always emit vtable offset for virtual member function
* src/abg-writer.cc (write_voffset): Emit the vtable offset of virtual function even when the offset is zero. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
6f50d38c23
commit
0c4843bc5c
@ -585,8 +585,11 @@ write_voffset(function_decl_sptr fn, ostream&o)
|
||||
if (!fn)
|
||||
return;
|
||||
|
||||
if (size_t voffset = get_member_function_vtable_offset(fn))
|
||||
o << " vtable-offset='" << voffset << "'";
|
||||
if (get_member_function_is_virtual(fn))
|
||||
{
|
||||
size_t voffset = get_member_function_vtable_offset(fn);
|
||||
o << " vtable-offset='" << voffset << "'";
|
||||
}
|
||||
}
|
||||
|
||||
/// Serialize an elf_symbol::type into an XML node attribute named
|
||||
|
Loading…
Reference in New Issue
Block a user