From 4587fc886af424e6dd8a14143104eb25f5695ce1 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Sun, 24 Dec 2006 13:51:01 -0200 Subject: [PATCH] [CLASSES]: Handle 'const' and 'volatile' in cus__emit_tag_definitions Signed-off-by: Arnaldo Carvalho de Melo --- classes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes.c b/classes.c index d1b07c7..cb50bba 100644 --- a/classes.c +++ b/classes.c @@ -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)