DWARF: Actually set the selected language, not always DW_LANG_C_plus_plus.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 24 Apr 2012 20:21:53 +0000 (22:21 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 24 Apr 2012 20:24:01 +0000 (22:24 +0200)
ir/be/bedwarf.c

index fba835e..0382466 100644 (file)
@@ -759,7 +759,7 @@ static void dwarf_unit_begin(dbg_handle *handle, const char *filename)
                           ir_get_version_revision());
        emit_string(filename);
        if (language != 0)
-               emit_int16(DW_LANG_C_plus_plus);
+               emit_int16(language);
        if (comp_dir != NULL)
                emit_string(comp_dir);
 }