mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-22 16:56:57 +00:00
ir: Fix output of 'debug(enum-type)'
The output of calling the debug function on an enum type wrongly says that we are looking at a union. Ooops. Fixed thus. * src/abg-ir.cc (get_debug_representation): Don't say 'union' when we are looking at an enum. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
528ed9fe55
commit
023d28abb4
@ -9653,7 +9653,7 @@ get_debug_representation(const type_or_decl_base* artifact)
|
||||
{
|
||||
string name = e->get_qualified_name();
|
||||
std::ostringstream o;
|
||||
o << "union " << name
|
||||
o << "enum " << name
|
||||
<< " : "
|
||||
<< e->get_underlying_type()->get_pretty_representation(/*internal=*/false,
|
||||
true)
|
||||
|
Loading…
Reference in New Issue
Block a user