{
case PROP_LOCEXPR:
{
- const struct dwarf2_property_baton *baton
- = (const struct dwarf2_property_baton *) prop->baton ();
+ const struct dwarf2_property_baton *baton = prop->baton ();
gdb_assert (baton->property_type != NULL);
bool is_reference = baton->locexpr.is_reference;
case PROP_LOCLIST:
{
- struct dwarf2_property_baton *baton
- = (struct dwarf2_property_baton *) prop->baton ();
+ struct dwarf2_property_baton *baton = prop->baton ();
CORE_ADDR pc;
const gdb_byte *data;
struct value *val;
case PROP_ADDR_OFFSET:
{
- struct dwarf2_property_baton *baton
- = (struct dwarf2_property_baton *) prop->baton ();
+ struct dwarf2_property_baton *baton = prop->baton ();
const struct property_addr_info *pinfo;
struct value *val;
CORE_ADDR pc,
struct symbol *sym)
{
- struct dwarf2_property_baton *baton
- = (struct dwarf2_property_baton *) prop->baton ();
+ struct dwarf2_property_baton *baton = prop->baton ();
const gdb_byte *data;
size_t size;
dwarf2_per_cu_data *per_cu;
struct language_defn;
struct dwarf2_per_cu_data;
struct dwarf2_per_objfile;
+struct dwarf2_property_baton;
/* Some macros for char-based bitfields. */
/* Storage for dynamic property. */
- void *baton;
+ dwarf2_property_baton *baton;
/* Storage of variant parts for a type. A type with variant parts
has all its fields "linearized" -- stored in a single field
m_data.const_val = const_val;
}
- void *baton () const
+ dwarf2_property_baton *baton () const
{
gdb_assert (m_kind == PROP_LOCEXPR
|| m_kind == PROP_LOCLIST
return m_data.baton;
}
- void set_locexpr (void *baton)
+ void set_locexpr (dwarf2_property_baton *baton)
{
m_kind = PROP_LOCEXPR;
m_data.baton = baton;
}
- void set_loclist (void *baton)
+ void set_loclist (dwarf2_property_baton *baton)
{
m_kind = PROP_LOCLIST;
m_data.baton = baton;
}
- void set_addr_offset (void *baton)
+ void set_addr_offset (dwarf2_property_baton *baton)
{
m_kind = PROP_ADDR_OFFSET;
m_data.baton = baton;