mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
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
This commit is contained in:
@@ -429,8 +429,10 @@ static bool fieldIsTypeRef(const MDNode *DbgNode, unsigned Elt) {
|
||||
/// Check if a value can be a ScopeRef.
|
||||
static bool isScopeRef(const Value *Val) {
|
||||
return !Val ||
|
||||
(isa<MDString>(Val) && !cast<MDString>(Val)->getString().empty()) ||
|
||||
isa<MDNode>(Val);
|
||||
(isa<MDString>(Val) && !cast<MDString>(Val)->getString().empty()) ||
|
||||
// Not checking for Val->isScope() here, because it would work
|
||||
// only for lexical scopes and not all subclasses of DIScope.
|
||||
isa<MDNode>(Val);
|
||||
}
|
||||
|
||||
/// Check if a field at position Elt of a MDNode can be a ScopeRef.
|
||||
|
||||
Reference in New Issue
Block a user