]> granicus.if.org Git - llvm/commitdiff
[dwarfdump] Pretty print DW_AT_APPLE_runtime_class
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 13 Jul 2018 16:06:17 +0000 (16:06 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 13 Jul 2018 16:06:17 +0000 (16:06 +0000)
Instead of printing

  DW_AT_APPLE_runtime_class       (0x10)

we now print

  DW_AT_APPLE_runtime_class       (DW_LANG_ObjC)

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

lib/BinaryFormat/Dwarf.cpp
test/DebugInfo/X86/objc-property-void.ll

index dd1ecea1782f9a2b7584fb55bfd5777a8dfa048f..a2e86c7a0144eeb864dc677ae17079e63b9b6c84 100644 (file)
@@ -564,6 +564,8 @@ StringRef llvm::dwarf::AttributeValueString(uint16_t Attr, unsigned Val) {
     return InlineCodeString(Val);
   case DW_AT_ordering:
     return ArrayOrderString(Val);
+  case DW_AT_APPLE_runtime_class:
+    return LanguageString(Val);
   }
 
   return StringRef();
index dc00f6552a5ef5830df2e07a1fa88a93a6ef8df4..b29beb48f5abb222891a6986b13e826145851155 100644 (file)
@@ -4,6 +4,7 @@
 ; CHECK: DW_TAG_structure_type
 ; CHECK:  DW_AT_APPLE_objc_complete_type
 ; CHECK:  DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-fA-F]+}}] = "Foo")
+; CHECK   DW_AT_APPLE_runtime_class [DW_FORM_data1]       (DW_LANG_ObjC)
 ; CHECK: DW_TAG_APPLE_property
 ; CHECK:  DW_AT_APPLE_property_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-fA-F]+}}] = "foo")