forked from OSchip/llvm-project
[ObjectYAML][DWARF] Take into account other debug sections in DWARFYAML::Data::isEmpty().
This commit is contained in:
parent
ede6005e70
commit
42011fb1c8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue