Lines Matching defs:source
149 /// An abstraction of a DIE offset that also encapsulate the source of
161 offset_type(die_source source, Dwarf_Off offset)
162 : source_(source),
1685 /// on the source of the DIE.
1698 /// @param source the die_source for which we want the container.
1701 /// source to something.
1703 get_container(die_source source)
1706 switch (source)
1727 /// @param source the die_source for which we want the container.
1730 /// source to something.
1732 get_container(die_source source) const
1735 get_container(source);
1739 /// same source as a given DIE.
1743 /// @param die the DIE which should have the same source as the
1744 /// source of the container we want.
1747 /// same source as @p die.
1751 const die_source source = rdr.get_die_source(die);
1752 return get_container(source);
1756 /// same source as a given DIE.
1760 /// @param die the DIE which should have the same source as the
1761 /// source of the container we want.
1764 /// same source as @p die.
1785 // A set of maps (one per kind of die source) that associates a decl
1790 // A set of maps (one per kind of die source) that associates a type
1801 // A set of maps (one per kind of die source) that associates the
1805 // A set of maps (one per kind of die source) that associates the
1809 /// A set of vectors (one per kind of die source) that associates
1813 /// A set of vectors (one per kind of die source) that associates
2401 /// Return the correct debug info, depending on the DIE source we
2404 /// @param source the DIE source to consider.
2406 /// @return the right debug info, depending on @p source.
2408 dwarf_per_die_source(die_source source) const
2411 switch(source)
2530 const die_source source = get_die_source(die);
2534 compute_canonical_die(die_offset, source,
2543 /// @param source the source of the DIE to consider.
2557 die_source source,
2567 type_die_repr_die_offsets_maps().get_container(source))
2569 decl_die_repr_die_offsets_maps().get_container(source));
2572 ABG_ASSERT(dwarf_offdie(const_cast<Dwarf*>(dwarf_per_die_source(source)),
2594 get_die_from_offset(source, die_offset, &canonical_die);
2605 get_die_from_offset(source, cur_die_offset, &potential_canonical_die);
2612 get_die_from_offset(source, canonical_die_offset, &canonical_die);
2620 get_die_from_offset(source, canonical_die_offset, &canonical_die);
2644 const die_source source = get_die_source(die);
2649 get_container(source)
2651 get_container(source);
2657 get_die_from_offset(source, canonical_die_offset, &canonical_die);
2691 get_die_from_offset(source, cur_die_offset, &canonical_die);
2736 const die_source source = get_die_source(die);
2741 get_container(source)
2743 get_container(source);
2751 get_die_from_offset(source, canonical_die_offset, &canonical_die);
2784 get_die_from_offset(source, initial_die_offset, &canonical_die);
2798 get_die_from_offset(source, die_offset, &canonical_die);
2814 get_die_from_offset(source, initial_die_offset, &canonical_die);
2823 /// Get the source of the DIE.
2830 /// @param die the DIE to get the source of.
2832 /// @return the source of the DIE if it could be determined,
2837 die_source source = NO_DEBUG_INFO_DIE_SOURCE;
2839 ABG_ASSERT(get_die_source(*die, source));
2840 return source;
2843 /// Get the source of the DIE.
2850 /// @param die the DIE to get the source of.
2852 /// @param source out parameter. The function sets this parameter
2853 /// to the source of the DIE @p iff it returns true.
2855 /// @return true iff the source of the DIE could be determined and
2858 get_die_source(const Dwarf_Die &die, die_source &source) const
2885 source = PRIMARY_DEBUG_INFO_DIE_SOURCE;
2887 source = ALT_DEBUG_INFO_DIE_SOURCE;
2892 source = TYPE_UNIT_DIE_SOURCE;
2901 /// @param source the source of the DIE to get.
2908 get_die_from_offset(die_source source, Dwarf_Off offset, Dwarf_Die *die) const
2910 if (source == TYPE_UNIT_DIE_SOURCE)
2911 ABG_ASSERT(dwarf_offdie_types(const_cast<Dwarf*>(dwarf_per_die_source(source)),
2914 ABG_ASSERT(dwarf_offdie(const_cast<Dwarf*>(dwarf_per_die_source(source)),
2946 const die_source source = get_die_source(die);
2949 decl_die_artefact_maps().get_container(source);
2975 /// @param source where the DIE represented by @p die_offset comes
2985 lookup_decl_from_die_offset(Dwarf_Off die_offset, die_source source)
2988 is_decl(lookup_artifact_from_die_offset(die_offset, source,
3271 die_source source,
3276 ? type_die_artefact_maps().get_container(source)
3277 : decl_die_artefact_maps().get_container(source);
3388 odr_is_relevant(Dwarf_Off die_offset, die_source source) const
3391 ABG_ASSERT(dwarf_offdie(const_cast<Dwarf*>(dwarf_per_die_source(source)),
3535 /// @param source the source of the DIE denoted by @p die_offset.
3544 die_source source,
3551 get_container(source)
3553 get_container(source);
3575 const die_source source = get_die_source(die);
3579 set_canonical_die_offset(die_offset, source,
3606 /// @param source the source of the DIE denoted by @p die_offset.
3615 die_source source,
3621 get_container(source)
3623 get_container(source);
3632 /// @param source the source of the canonical type.
3641 die_source source,
3647 get_container(source)
3649 get_container(source);
3704 /// given source.
3712 /// @param source the source of the DIE to consider.
3717 lookup_type_from_die_offset(size_t die_offset, die_source source) const
3721 type_die_artefact_maps().get_container(source);
3733 const die_class_or_union_map_type& m = die_wip_classes_map(source);
3744 die_wip_function_types_map(source);
3758 /// @param source where the DIE is from.
3763 die_wip_classes_map(die_source source) const
3764 {return const_cast<reader*>(this)->die_wip_classes_map(source);}
3770 /// @param source where the DIE comes from.
3775 die_wip_classes_map(die_source source)
3777 switch (source)
3796 /// @param source where the DIE comes from.n
3800 die_wip_function_types_map(die_source source) const
3801 {return const_cast<reader*>(this)->die_wip_function_types_map(source);}
3807 /// @param source where DIEs of the map come from.
3811 die_wip_function_types_map(die_source source)
3813 switch (source)
3845 /// @param source where the DIE of the map come from.
3850 is_wip_class_die_offset(Dwarf_Off offset, die_source source) const
3853 die_wip_classes_map(source).find(offset);
3854 return (i != die_wip_classes_map(source).end());
3863 /// @param source where the DIE comes from.
3868 is_wip_function_type_die_offset(Dwarf_Off offset, die_source source) const
3871 die_wip_function_types_map(source).find(offset);
3872 return (i != die_wip_function_types_map(source).end());
4506 /// @param source where the DIE of the types to canonicalize are
4568 /// @param source where the DIEs of the canonicalized types are
4631 /// @param source where the DIEs are from.
4635 tu_die_imported_unit_points_map(die_source source) const
4636 {return const_cast<reader*>(this)->tu_die_imported_unit_points_map(source);}
4641 /// @param source where the DIEs are from.
4645 tu_die_imported_unit_points_map(die_source source)
4647 switch (source)
4673 /// @param source where the DIEs in the map come from.
4677 die_parent_map(die_source source) const
4678 {return const_cast<reader*>(this)->die_parent_map(source);}
4683 /// @param source where the DIEs in the map come from.
4687 die_parent_map(die_source source)
4689 switch (source)
5194 /// @param source where the DIE @p die comes from.
5200 die_source source,
5206 offset_offset_map_type& parent_of = die_parent_map(source);
5239 build_die_parent_relations_under(&child, source, imported_units);
5335 die_source source = ALT_DEBUG_INFO_DIE_SOURCE;
5350 tu_die_imported_unit_points_map(source)[die_offset] =
5352 build_die_parent_relations_under(&cu, source, imported_units);
5357 source = PRIMARY_DEBUG_INFO_DIE_SOURCE;
5373 tu_die_imported_unit_points_map(source)[die_offset] =
5375 build_die_parent_relations_under(&cu, source, imported_units);
5380 source = TYPE_UNIT_DIE_SOURCE;
5400 tu_die_imported_unit_points_map(source)[die_offset] =
5402 build_die_parent_relations_under(&cu, source, imported_units);
6180 /// Returns the source location associated with a decl DIE.
6184 /// @param die the DIE the read the source location from.
10021 /// @param l_die_source the source of the DIE denoted by the offset @p
10024 /// @param r_die_source the source of the DIE denoted by the offset @p
10339 // source.
11257 /// @param source where the DIE of first_die_cu_offset unit comes
11278 die_source source,
11283 rdr.tu_die_imported_unit_points_map(source);
11398 /*source=*/PRIMARY_DEBUG_INFO_DIE_SOURCE,
11443 const die_source source = rdr.get_die_source(die);
11445 const offset_offset_map_type& m = rdr.die_parent_map(source);
11452 switch (source)
12729 const die_source source = rdr.get_die_source(die);
12738 rdr.die_wip_classes_map(source).find(dwarf_dieoffset(die));
12739 if (i != rdr.die_wip_classes_map(source).end())
12878 rdr.die_wip_classes_map(source)[dwarf_dieoffset(die)] = result;
13085 rdr.die_wip_classes_map(source).find(dwarf_dieoffset(die));
13086 if (i != rdr.die_wip_classes_map(source).end())
13091 rdr.die_wip_classes_map(source).erase(i);
13141 const die_source source = rdr.get_die_source(die);
13144 rdr.die_wip_classes_map(source).find(dwarf_dieoffset(die));
13145 if (i != rdr.die_wip_classes_map(source).end())
13242 rdr.die_wip_classes_map(source)[dwarf_dieoffset(die)] = result;
13335 rdr.die_wip_classes_map(source).find(dwarf_dieoffset(die));
13336 if (i != rdr.die_wip_classes_map(source).end())
13341 rdr.die_wip_classes_map(source).erase(i);
13754 const die_source source = rdr.get_die_source(die);
13758 auto i = rdr.die_wip_function_types_map(source).find(off);
13759 if (i != rdr.die_wip_function_types_map(source).end())
13847 rdr.die_wip_function_types_map(source)[dwarf_dieoffset(die)] = result;
13928 rdr.die_wip_function_types_map(source).
13930 if (i != rdr.die_wip_function_types_map(source).end())
13931 rdr.die_wip_function_types_map(source).erase(i);