[llvm] r337011 - [dwarfdump] Pretty print DW_AT_APPLE_runtime_class
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 09:06:17 PDT 2018
Author: jdevlieghere
Date: Fri Jul 13 09:06:17 2018
New Revision: 337011
URL: http://llvm.org/viewvc/llvm-project?rev=337011&view=rev
Log:
[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)
Modified:
llvm/trunk/lib/BinaryFormat/Dwarf.cpp
llvm/trunk/test/DebugInfo/X86/objc-property-void.ll
Modified: llvm/trunk/lib/BinaryFormat/Dwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/BinaryFormat/Dwarf.cpp?rev=337011&r1=337010&r2=337011&view=diff
==============================================================================
--- llvm/trunk/lib/BinaryFormat/Dwarf.cpp (original)
+++ llvm/trunk/lib/BinaryFormat/Dwarf.cpp Fri Jul 13 09:06:17 2018
@@ -564,6 +564,8 @@ StringRef llvm::dwarf::AttributeValueStr
return InlineCodeString(Val);
case DW_AT_ordering:
return ArrayOrderString(Val);
+ case DW_AT_APPLE_runtime_class:
+ return LanguageString(Val);
}
return StringRef();
Modified: llvm/trunk/test/DebugInfo/X86/objc-property-void.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/objc-property-void.ll?rev=337011&r1=337010&r2=337011&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/objc-property-void.ll (original)
+++ llvm/trunk/test/DebugInfo/X86/objc-property-void.ll Fri Jul 13 09:06:17 2018
@@ -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")
More information about the llvm-commits
mailing list