From 1c588eb8ad655b643a96e27dc8e4377830dc2936 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 24 Apr 2012 22:21:53 +0200 Subject: [PATCH] DWARF: Actually set the selected language, not always DW_LANG_C_plus_plus. --- ir/be/bedwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/be/bedwarf.c b/ir/be/bedwarf.c index fba835eac..0382466a9 100644 --- a/ir/be/bedwarf.c +++ b/ir/be/bedwarf.c @@ -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); } -- 2.20.1