diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-04-01 21:04:24 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-04-01 21:04:24 +0000 |
commit | 2f1e34736e4f14c57d1c1fdcfc8b9e133c4885d9 (patch) | |
tree | e36cb8aaa21d50ace0c4239832009cb8dcde6dce /include/llvm/IR | |
parent | ccd539282b4433bf4d3fca0e23b33799966cdbc0 (diff) | |
download | llvm-2f1e34736e4f14c57d1c1fdcfc8b9e133c4885d9.tar.gz llvm-2f1e34736e4f14c57d1c1fdcfc8b9e133c4885d9.tar.bz2 llvm-2f1e34736e4f14c57d1c1fdcfc8b9e133c4885d9.tar.xz |
Add a comment about the DIDescriptor class hierarchy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR')
-rw-r--r-- | include/llvm/IR/DebugInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/IR/DebugInfo.h b/include/llvm/IR/DebugInfo.h index 69beaada9c..bf3ae98381 100644 --- a/include/llvm/IR/DebugInfo.h +++ b/include/llvm/IR/DebugInfo.h @@ -197,6 +197,13 @@ typedef DIRef<DIScope> DIScopeRef; typedef DIRef<DIType> DITypeRef; /// DIScope - A base class for various scopes. +/// +/// Although, implementation-wise, DIScope is the parent class of most +/// other DIxxx classes, including DIType and its descendants, most of +/// DIScope’s descendants are not a substitutable subtype of +/// DIScope. The DIDescriptor::isScope() method only is true for +/// DIScopes that are scopes in the strict lexical scope sense +/// (DICompileUnit, DISubprogram, etc.), but not for, e.g., a DIType. class DIScope : public DIDescriptor { protected: friend class DIDescriptor; |