* src/abg-ir.cc (get_debug_representation): Prefix
classes/structs/unions with the 'classes/struct/union' prefix.
Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
class_decl *clazz = is_class_type(c);
string name = c->get_qualified_name();
std::ostringstream o;
+ if (clazz)
+ {
+ if (clazz->is_struct())
+ o << "struct ";
+ else
+ o << "class ";
+ }
+ else if (is_union_type(c))
+ o << "union ";
o << name;
if (clazz)
{
string name = e->get_qualified_name();
std::ostringstream o;
- o << name
+ o << "union " << name
<< " : "
<< e->get_underlying_type()->get_pretty_representation(/*internal=*/false,
true)