* dwarf2read.c (read_enumeration_type): Flag type as stub if

the given die is a declaration.
This commit is contained in:
Joel Brobecker
2008-01-03 17:29:56 +00:00
parent 1689ecf896
commit 02eb380e72
2 changed files with 8 additions and 0 deletions

View File

@@ -4233,6 +4233,9 @@ read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu)
TYPE_LENGTH (type) = 0;
}
if (die_is_declaration (die, cu))
TYPE_FLAGS (type) |= TYPE_FLAG_STUB;
set_die_type (die, type, cu);
}