public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH, applied] ir: Fix output of 'debug(enum-type)'
@ 2023-10-03  9:40 Dodji Seketeli
  0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2023-10-03  9:40 UTC (permalink / raw)
  To: libabigail

Hello,

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>
Applied to master.
---
 src/abg-ir.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index e7a2d6a8..fc3437d6 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -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)
-- 
2.39.3


-- 
		Dodji


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-03  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03  9:40 [PATCH, applied] ir: Fix output of 'debug(enum-type)' Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).