diff options
author | Eric Christopher <echristo@apple.com> | 2012-03-29 08:42:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-03-29 08:42:56 +0000 |
commit | b8ca98874316bfe8e46b27e7a034a8a764c92e08 (patch) | |
tree | c3d8f435ad918dbc5520905a5bd66f2f85d4e297 /lib/Analysis/DebugInfo.cpp | |
parent | 24b878031d4f62baf0e9a0573aeebc9dfd54b546 (diff) |
Add support for objc property decls according to the page at:
http://llvm.org/docs/SourceLevelDebugging.html#objcproperty
including type and DECL. Expand the metadata needed accordingly.
rdar://11144023
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index e30c0a9b33..c9a619863b 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -377,6 +377,19 @@ bool DICompileUnit::Verify() const { return true; } +/// Verify - Verify that an ObjC property is well formed. +bool DIObjCProperty::Verify() const { + if (!DbgNode) + return false; + unsigned Tag = getTag(); + if (Tag != dwarf::DW_TAG_APPLE_Property) return false; + DIType Ty = getType(); + if (!Ty.Verify()) return false; + + // Don't worry about the rest of the strings for now. + return true; +} + /// Verify - Verify that a type descriptor is well formed. bool DIType::Verify() const { if (!DbgNode) |