On Thu, Nov 13, 2014 at 12:08:01PM +0100, Richard Biener wrote:
> Btw, I have nothing against changing TRANSLATION_UNIT_LANGUAGE
> to DW_LANG_* directly - we only use it for choosing the language
> of the dwarf unit.  This would of course mean to change its initialization
> from
> 
>   TRANSLATION_UNIT_LANGUAGE (tu) = lang_hooks.name;
> 
> to sth like
> 
>   TRANSLATION_UNIT_LANGUAGE (tu) = lang_hooks.dw_lang;
> 
> which means adding a langhook (thus more similar to your original
> patch).

But that would mean having to include dwarf2 headers in every FE.

        Jakub

Reply via email to