From 0b0731cbb0b16846d74d99ec33fe266f1bc92abf Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 13 Jul 2018 16:06:17 +0000 Subject: [PATCH] [dwarfdump] Pretty print DW_AT_APPLE_runtime_class 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 | 2 ++ test/DebugInfo/X86/objc-property-void.ll | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/BinaryFormat/Dwarf.cpp b/lib/BinaryFormat/Dwarf.cpp index dd1ecea1782..a2e86c7a014 100644 --- a/lib/BinaryFormat/Dwarf.cpp +++ b/lib/BinaryFormat/Dwarf.cpp @@ -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(); diff --git a/test/DebugInfo/X86/objc-property-void.ll b/test/DebugInfo/X86/objc-property-void.ll index dc00f6552a5..b29beb48f5a 100644 --- a/test/DebugInfo/X86/objc-property-void.ll +++ b/test/DebugInfo/X86/objc-property-void.ll @@ -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") -- 2.11.0