diff options
author | Devang Patel <dpatel@apple.com> | 2012-02-06 17:49:43 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2012-02-06 17:49:43 +0000 |
commit | 4488217f730e06c16ae09f3f59f9be2fdef69cb9 (patch) | |
tree | d52434f712874a2768d979329f9de5bf8d1dd860 /llvm/lib/Analysis/DebugInfo.cpp | |
parent | 3bb42f38f4c75de8859a3e1c0de229e2eff947fb (diff) | |
download | bcm5719-llvm-4488217f730e06c16ae09f3f59f9be2fdef69cb9.tar.gz bcm5719-llvm-4488217f730e06c16ae09f3f59f9be2fdef69cb9.zip |
DebugInfo: Provide a new hook to encode relationship between a property and an ivar.
llvm-svn: 149874
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index a2d2c5f5803..5cbd15e4c7f 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -510,6 +510,13 @@ uint64_t DIDerivedType::getOriginalTypeSize() const { return getSizeInBits(); } +/// getObjCProperty - Return property node, if this ivar is associated with one. +MDNode *DIDerivedType::getObjCProperty() const { + if (getVersion() <= LLVMDebugVersion11 || DbgNode->getNumOperands() <= 10) + return NULL; + return dyn_cast_or_null<MDNode>(DbgNode->getOperand(10)); +} + /// isInlinedFnArgument - Return true if this variable provides debugging /// information for an inlined function arguments. bool DIVariable::isInlinedFnArgument(const Function *CurFn) { |