]> sourceware.org Git - libabigail.git/commit
ir, test-read-ctf: Remove uncertainty in sorting anonymous types
authorDodji Seketeli <dodji@redhat.com>
Mon, 13 Jun 2022 13:45:01 +0000 (15:45 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 13 Jun 2022 16:04:17 +0000 (18:04 +0200)
commitaecfa368a5af8a6b20b6ce16500e031dc9cee0ef
tree513bbe3ea1530c247a9280822413baff27943342
parent8cbf9f46f2e423789b435561256d132361af7526
ir, test-read-ctf: Remove uncertainty in sorting anonymous types

For a reason, I am seeing changes in the test-read-ctf output.  Those
are related to sorting anonymous structs that have no (internal) name.
The CTF reader emits such types.

This patch thus considers the flat representation of an anonymous
class/union when it doesn't have an internal name.  The patch also
updates the test-read-ctf output tests accordingly.

* src/abg-ir.cc ({class_decl,
union_decl}::get_pretty_representation): If the anonymous class
has no internal name, use its flat representation as internal
representation.
* tests/data/test-read-ctf/test-PR26568-1.o.abi: Likewise.
* tests/data/test-read-ctf/test-PR26568-2.o.abi: Likewise.
* tests/data/test-read-ctf/test-anonymous-fields.o.abi: Likewise.
* tests/data/test-read-ctf/test-anonymous-fields.o.abi: Likewise.
* tests/data/test-read-ctf/test0.hash.abi: Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc
tests/data/test-read-ctf/test-PR26568-1.o.abi
tests/data/test-read-ctf/test-PR26568-2.o.abi
tests/data/test-read-ctf/test-anonymous-fields.o.abi
tests/data/test-read-ctf/test0.hash.abi
This page took 0.033953 seconds and 5 git commands to generate.