mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 09:37:20 +00:00
Debug Info: Update isScope to make sure DIType is a scope and
TAG_file_type is also a scope. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2dd3afc5e6
commit
626a4b785b
@ -246,11 +246,12 @@ bool DIDescriptor::isScope() const {
|
||||
case dwarf::DW_TAG_lexical_block:
|
||||
case dwarf::DW_TAG_subprogram:
|
||||
case dwarf::DW_TAG_namespace:
|
||||
case dwarf::DW_TAG_file_type:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
return isType();
|
||||
}
|
||||
|
||||
/// isTemplateTypeParameter - Return true if the specified tag is
|
||||
|
Loading…
x
Reference in New Issue
Block a user