[dsymutil] Add DW_TAG_common_block to dieNeedsChildrenToBeMeaningful
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 1 Nov 2019 17:43:39 +0000 (10:43 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 1 Nov 2019 17:49:07 +0000 (10:49 -0700)
commit96bbf478b6718b13b19ac52fd790e64d4ed56fe9
treee4d5c1072eb4a2955ebe369845983aa60e5c3ef3
parent27c9abae656234813931e2717d60c69d988ecedc
[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.
llvm/tools/dsymutil/DwarfLinker.cpp