[DWARFYAML] Simplify isEmpty(). NFC.
This commit is contained in:
parent
3aecf4bdf3
commit
4a0b95dc5e
|
@ -17,9 +17,7 @@
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
bool DWARFYAML::Data::isEmpty() const {
|
bool DWARFYAML::Data::isEmpty() const {
|
||||||
return DebugStrings.empty() && AbbrevDecls.empty() && !DebugAranges &&
|
return getNonEmptySectionNames().empty();
|
||||||
DebugRanges.empty() && !PubNames && !PubTypes && !GNUPubNames &&
|
|
||||||
!GNUPubTypes && CompileUnits.empty() && DebugLines.empty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SetVector<StringRef> DWARFYAML::Data::getNonEmptySectionNames() const {
|
SetVector<StringRef> DWARFYAML::Data::getNonEmptySectionNames() const {
|
||||||
|
|
Loading…
Reference in New Issue