* Default implementation for finding a pointer type for a given element type.
* Simple create a new one.
*/
* Default implementation for finding a pointer type for a given element type.
* Simple create a new one.
*/
/* Mode and alignment are always identical in all calls to def_find_pointer_type(), so
we simply can use a map from the element type to the pointer type. */
e = pmap_find(type_map, e_type);
/* Mode and alignment are always identical in all calls to def_find_pointer_type(), so
we simply can use a map from the element type to the pointer type. */
e = pmap_find(type_map, e_type);
set_type_alignment_bytes(res, alignment);
pmap_insert(type_map, e_type, res);
}
set_type_alignment_bytes(res, alignment);
pmap_insert(type_map, e_type, res);
}
else {
/* this compound will be allocated on callers stack and its
address will be transmitted as a hidden parameter. */
else {
/* this compound will be allocated on callers stack and its
address will be transmitted as a hidden parameter. */
res_tp = get_method_res_type(mtp, i);
if (is_compound_type(res_tp)) {
res_tp = get_method_res_type(mtp, i);
if (is_compound_type(res_tp)) {