[ObjectYAML][DWARF] Take into account other debug sections in DWARFYAML::Data::isEmpty().

This commit is contained in:
Xing GUO 2020-05-17 22:48:40 +08:00
parent ede6005e70
commit 42011fb1c8
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@
namespace llvm {
bool DWARFYAML::Data::isEmpty() const {
return 0 == DebugStrings.size() + AbbrevDecls.size();
return 0 == DebugStrings.size() + AbbrevDecls.size() + ARanges.size() +
DebugRanges.size() + PubNames.Entries.size() +
PubTypes.Entries.size() + GNUPubNames.Entries.size() +
GNUPubTypes.Entries.size() + CompileUnits.size() +
DebugLines.size();
}
namespace yaml {