* dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
From-SVN: r182717
This commit is contained in:
parent
8d2fbf9b2d
commit
3d2445684a
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-12-28 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
|
||||
|
||||
2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
|
||||
|
||||
PR target/51623
|
||||
|
|
|
@ -18433,6 +18433,11 @@ gen_compile_unit_die (const char *filename)
|
|||
language = DW_LANG_ObjC;
|
||||
else if (strcmp (language_string, "GNU Objective-C++") == 0)
|
||||
language = DW_LANG_ObjC_plus_plus;
|
||||
else if (dwarf_version >= 5 || !dwarf_strict)
|
||||
{
|
||||
if (strcmp (language_string, "GNU Go") == 0)
|
||||
language = DW_LANG_Go;
|
||||
}
|
||||
}
|
||||
|
||||
add_AT_unsigned (die, DW_AT_language, language);
|
||||
|
|
Loading…
Add table
Reference in a new issue