diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-07-13 16:06:17 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-07-13 16:06:17 +0000 |
| commit | 8afd926077008ed405ef3b99582175ea38604a42 (patch) | |
| tree | 542ba0517fd7dfd4009e7a775ace947897217838 | |
| parent | 4a547fb62d40a2406b5992e80cc27824f752b3db (diff) | |
| download | bcm5719-llvm-8afd926077008ed405ef3b99582175ea38604a42.tar.gz bcm5719-llvm-8afd926077008ed405ef3b99582175ea38604a42.zip | |
[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)
llvm-svn: 337011
| -rw-r--r-- | llvm/lib/BinaryFormat/Dwarf.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/objc-property-void.ll | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/BinaryFormat/Dwarf.cpp b/llvm/lib/BinaryFormat/Dwarf.cpp index dd1ecea1782..a2e86c7a014 100644 --- a/llvm/lib/BinaryFormat/Dwarf.cpp +++ b/llvm/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/llvm/test/DebugInfo/X86/objc-property-void.ll b/llvm/test/DebugInfo/X86/objc-property-void.ll index dc00f6552a5..b29beb48f5a 100644 --- a/llvm/test/DebugInfo/X86/objc-property-void.ll +++ b/llvm/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") |

