die->type = type;
set_die_type (die, type, cu);
read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu){  struct objfile *objfile = cu->objfile;  struct type *type;  struct attribute *attr;  if (die->type)    return;  type = alloc_type (objfile);  TYPE_CODE (type) = TYPE_CODE_ENUM;  attr = dwarf2_attr (die, DW_AT_name, cu);  if (attr && DW_STRING (attr))    {      const char *name = DW_STRING (attr);      if (processing_has_namespace_info)	{	  TYPE_TAG_NAME (type) = obconcat (&objfile->objfile_obstack,					   processing_current_prefix,					   processing_current_prefix[0] == '\0'					   ? "" : "::",					   name);	}      else	{	  TYPE_TAG_NAME (type) = obsavestring (name, strlen (name),					       &objfile->objfile_obstack);	}    }  attr = dwarf2_attr (die, DW_AT_byte_size, cu);  if (attr)    {      TYPE_LENGTH (type) = DW_UNSND (attr);    }  else    {      TYPE_LENGTH (type) = 0;    }  die->type = type;}