Revert "[dwarfdump] Add missing DW_LANG_Mips_Assembler case to LanguageString()"
authorFrederic Riss <friss@apple.com>
Thu, 4 Sep 2014 18:55:46 +0000 (18:55 +0000)
committerFrederic Riss <friss@apple.com>
Thu, 4 Sep 2014 18:55:46 +0000 (18:55 +0000)
This reverts commit 93c7e6161e1adbd2c7ac81fa081823183035cb64.

This commit got approved first, but was dependant on another one going in (The one pretty printing attribute values). I'll reapply when the other one is in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217183 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Dwarf.cpp
test/DebugInfo/2010-03-19-DbgDeclare.ll
test/MC/MachO/gen-dwarf.s

index 4ff078c5ba97003eba1eaced4265c7f1776eae04..c9efa61afe698b36b18704209224df7e458792db 100644 (file)
@@ -598,7 +598,6 @@ 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;
index 941fdec363c8536537ff4aa9760b4ae21aa016b7..94aa259d31b65e7a7376ab65a5c7104a9534faae 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: opt < %s -verify -S | FileCheck %s
 
-; CHECK: [DW_LANG_Mips_Assembler]
+; CHECK: lang 0x8001
 
 define void @Foo(i32 %a, i32 %b) {
 entry:
index 21c0c8e2b8d831259ad63a4e6e29e50d8cb7d585..997c83498ef1ec85831bab3f2464f8cea5338d46 100644 (file)
@@ -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]    (DW_LANG_Mips_Assembler)
+// CHECK:    DW_AT_language [DW_FORM_data2]    (0x8001)
 
 // CHECK:    DW_TAG_label [2] *
 // CHECK:      DW_AT_name [DW_FORM_string]     ("bar")