mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[dsymutil] Add DW_TAG_common_block to dieNeedsChildrenToBeMeaningful
Ensure we walk the children of common blocks when deciding what DIEs to keep. Otherwise we might incorrectly discard them leading to missing variables in the linked debug info. This also sorts the list of DW_TAGs alphabetically.
This commit is contained in:
parent
be50cd2577
commit
db932bd204
@ -359,11 +359,12 @@ static bool dieNeedsChildrenToBeMeaningful(uint32_t Tag) {
|
|||||||
switch (Tag) {
|
switch (Tag) {
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
case dwarf::DW_TAG_subprogram:
|
|
||||||
case dwarf::DW_TAG_lexical_block:
|
|
||||||
case dwarf::DW_TAG_subroutine_type:
|
|
||||||
case dwarf::DW_TAG_structure_type:
|
|
||||||
case dwarf::DW_TAG_class_type:
|
case dwarf::DW_TAG_class_type:
|
||||||
|
case dwarf::DW_TAG_common_block:
|
||||||
|
case dwarf::DW_TAG_lexical_block:
|
||||||
|
case dwarf::DW_TAG_structure_type:
|
||||||
|
case dwarf::DW_TAG_subprogram:
|
||||||
|
case dwarf::DW_TAG_subroutine_type:
|
||||||
case dwarf::DW_TAG_union_type:
|
case dwarf::DW_TAG_union_type:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user