[CLASSES]: Handle 'const' and 'volatile' in cus__emit_tag_definitions

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-12-24 13:51:01 -02:00
parent c9ccd3bb04
commit 4587fc886a
1 changed files with 3 additions and 1 deletions

View File

@ -2172,7 +2172,9 @@ static int cus__emit_tag_definitions(struct cus *self, struct cu *cu,
if (type == NULL)
return 0;
next_indirection:
if (type->tag.tag == DW_TAG_pointer_type) {
if (type->tag.tag == DW_TAG_pointer_type ||
type->tag.tag == DW_TAG_const_type ||
type->tag.tag == DW_TAG_volatile_type) {
pointer = 1;
type = cu__find_class_by_id(cu, type->tag.type);
if (type == NULL)