diff options
Diffstat (limited to 'llvm')
-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") |