summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-09-05 07:21:40 +0000
committerFrederic Riss <friss@apple.com>2014-09-05 07:21:40 +0000
commit1a3736f4f6577c87748ab0f484041c947621ce75 (patch)
tree3727e9faa63fb8ce72046e40c4369681c580b114
parent9232ea6ac5ee66edc8e8a0b1164ff4d2c9e86a15 (diff)
downloadbcm5719-llvm-1a3736f4f6577c87748ab0f484041c947621ce75.tar.gz
bcm5719-llvm-1a3736f4f6577c87748ab0f484041c947621ce75.zip
Reapply "[dwarfdump] Add missing DW_LANG_Mips_Assembler case to LanguageString()"
This commit was reverted in r217183, but is OK to go in again now that its dependency is commited (as of r217186). llvm-svn: 217231
-rw-r--r--llvm/lib/Support/Dwarf.cpp1
-rw-r--r--llvm/test/DebugInfo/2010-03-19-DbgDeclare.ll2
-rw-r--r--llvm/test/MC/MachO/gen-dwarf.s2
3 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp
index a5a05778450..5237ac22025 100644
--- a/llvm/lib/Support/Dwarf.cpp
+++ b/llvm/lib/Support/Dwarf.cpp
@@ -598,6 +598,7 @@ const char *llvm::dwarf::LanguageString(unsigned Language) {
case DW_LANG_C_plus_plus_11: return "DW_LANG_C_plus_plus_11";
case DW_LANG_OCaml: return "DW_LANG_OCaml";
case DW_LANG_lo_user: return "DW_LANG_lo_user";
+ case DW_LANG_Mips_Assembler: return "DW_LANG_Mips_Assembler";
case DW_LANG_hi_user: return "DW_LANG_hi_user";
}
return nullptr;
diff --git a/llvm/test/DebugInfo/2010-03-19-DbgDeclare.ll b/llvm/test/DebugInfo/2010-03-19-DbgDeclare.ll
index 94aa259d31b..941fdec363c 100644
--- a/llvm/test/DebugInfo/2010-03-19-DbgDeclare.ll
+++ b/llvm/test/DebugInfo/2010-03-19-DbgDeclare.ll
@@ -1,6 +1,6 @@
; RUN: opt < %s -verify -S | FileCheck %s
-; CHECK: lang 0x8001
+; CHECK: [DW_LANG_Mips_Assembler]
define void @Foo(i32 %a, i32 %b) {
entry:
diff --git a/llvm/test/MC/MachO/gen-dwarf.s b/llvm/test/MC/MachO/gen-dwarf.s
index 997c83498ef..21c0c8e2b8d 100644
--- a/llvm/test/MC/MachO/gen-dwarf.s
+++ b/llvm/test/MC/MachO/gen-dwarf.s
@@ -46,7 +46,7 @@ _x: .long 1
// CHECK: DW_AT_name [DW_FORM_string]
// We don't check the DW_AT_comp_dir which is the current working directory
// CHECK: DW_AT_producer [DW_FORM_string] ("llvm-mc (based on {{.*}})")
-// CHECK: DW_AT_language [DW_FORM_data2] (0x8001)
+// CHECK: DW_AT_language [DW_FORM_data2] (DW_LANG_Mips_Assembler)
// CHECK: DW_TAG_label [2] *
// CHECK: DW_AT_name [DW_FORM_string] ("bar")
OpenPOWER on IntegriCloud