[DWARFYAML] Simplify isEmpty(). NFC.

This commit is contained in:
Xing GUO 2020-08-15 20:09:37 +08:00
parent 3aecf4bdf3
commit 4a0b95dc5e
1 changed files with 1 additions and 3 deletions

View File

@ -17,9 +17,7 @@
namespace llvm {
bool DWARFYAML::Data::isEmpty() const {
return DebugStrings.empty() && AbbrevDecls.empty() && !DebugAranges &&
DebugRanges.empty() && !PubNames && !PubTypes && !GNUPubNames &&
!GNUPubTypes && CompileUnits.empty() && DebugLines.empty();
return getNonEmptySectionNames().empty();
}
SetVector<StringRef> DWARFYAML::Data::getNonEmptySectionNames() const {