aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Dwarf.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-07-14 00:41:18 +0000
committerAdrian Prantl <aprantl@apple.com>2016-07-14 00:41:18 +0000
commit0418ef2691110903254f98214a869ddd682a31e7 (patch)
tree17a884c0ac6894929c4f25e220125332d31129da /llvm/lib/Support/Dwarf.cpp
parentae610ab528a382a393aae26d2d67cee05cabe634 (diff)
downloadllvm-0418ef2691110903254f98214a869ddd682a31e7.zip
llvm-0418ef2691110903254f98214a869ddd682a31e7.tar.gz
llvm-0418ef2691110903254f98214a869ddd682a31e7.tar.bz2
Synchronize LLVM and clang's ObjCDeclSpec::ObjCPropertyAttributeKind.
This adds Clang-specific DWARF constants for nullability and ObjC class properties that are already generated by clang. This patch adds dwarfdump support and a more comprehensive testcase. <rdar://problem/27335745> llvm-svn: 275354
Diffstat (limited to 'llvm/lib/Support/Dwarf.cpp')
-rw-r--r--llvm/lib/Support/Dwarf.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp
index 230a3da..7aea05d 100644
--- a/llvm/lib/Support/Dwarf.cpp
+++ b/llvm/lib/Support/Dwarf.cpp
@@ -545,6 +545,12 @@ const char *llvm::dwarf::ApplePropertyString(unsigned Prop) {
return "DW_APPLE_PROPERTY_strong";
case DW_APPLE_PROPERTY_unsafe_unretained:
return "DW_APPLE_PROPERTY_unsafe_unretained";
+ case DW_APPLE_PROPERTY_nullability:
+ return "DW_APPLE_PROPERTY_nullability";
+ case DW_APPLE_PROPERTY_null_resettable:
+ return "DW_APPLE_PROPERTY_null_resettable";
+ case DW_APPLE_PROPERTY_class:
+ return "DW_APPLE_PROPERTY_class";
}
return nullptr;
}