[lto] Add nth_parm_type_p, alloc_parm_types, vec_heap2parm_types.
Mark Mitchell
mark@codesourcery.com
Mon Jul 17 17:10:00 GMT 2006
Kazu Hirata wrote:
> Hi Mark,
>
>>> *(nth_parm_type_p (parm_types, 3)) = some_type;
>>
>>
>> Would set_parm_type (parm_types, 3, some_type) be a simpler interface?
>>
>> I'm OK with either option, but pointers always tend to require a bit
>> more thought.
>
> OK. How about introducing both set_parm_type and nth_parm_type_ptr?
Only if you think it's convenient; you're the one using the interface.
:-) If you need the pointer interface, and you're happy to use it,
stick with that.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list