return ct->num;
}
-/* Process a DW_TAG_reference_type DIE, add a new LF_POINTER type, and return
- its number. */
+/* Process a DW_TAG_reference_type or DW_TAG_rvalue_reference_type DIE, add a
+ new LF_POINTER type, and return its number. */
static uint32_t
-get_type_num_reference_type (dw_die_ref type, bool in_struct)
+get_type_num_reference_type (dw_die_ref type, bool in_struct, bool rvref)
{
uint32_t base_type_num, byte_size;
dw_die_ref base_type;
ct->next = NULL;
ct->kind = LF_POINTER;
ct->lf_pointer.base_type = base_type_num;
- ct->lf_pointer.attributes = CV_PTR_MODE_LVREF;
+ ct->lf_pointer.attributes = rvref ? CV_PTR_MODE_RVREF : CV_PTR_MODE_LVREF;
if (byte_size == 4)
ct->lf_pointer.attributes |= CV_PTR_NEAR32;
case DW_TAG_union_type:
case DW_TAG_pointer_type:
case DW_TAG_reference_type:
+ case DW_TAG_rvalue_reference_type:
size = get_AT_unsigned (t, DW_AT_byte_size);
break;
break;
case DW_TAG_reference_type:
- num = get_type_num_reference_type (type, in_struct);
+ num = get_type_num_reference_type (type, in_struct, false);
+ break;
+
+ case DW_TAG_rvalue_reference_type:
+ num = get_type_num_reference_type (type, in_struct, true);
break;
case DW_TAG_const_type: