[llvm] 590f3a7 - [ObjectYAML][DWARF] Use .empty() to indicate if the DWARF sections are empty.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Tue May 26 02:42:04 PDT 2020
Author: Xing GUO
Date: 2020-05-26T17:45:10+08:00
New Revision: 590f3a72c243b888ab10c4f9e71bf7f8eca99717
URL: https://github.com/llvm/llvm-project/commit/590f3a72c243b888ab10c4f9e71bf7f8eca99717
DIFF: https://github.com/llvm/llvm-project/commit/590f3a72c243b888ab10c4f9e71bf7f8eca99717.diff
LOG: [ObjectYAML][DWARF] Use .empty() to indicate if the DWARF sections are empty.
Added:
Modified:
llvm/lib/ObjectYAML/DWARFYAML.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjectYAML/DWARFYAML.cpp b/llvm/lib/ObjectYAML/DWARFYAML.cpp
index 31c469f88004..63aea17324b6 100644
--- a/llvm/lib/ObjectYAML/DWARFYAML.cpp
+++ b/llvm/lib/ObjectYAML/DWARFYAML.cpp
@@ -16,11 +16,11 @@
namespace llvm {
bool DWARFYAML::Data::isEmpty() const {
- 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();
+ return DebugStrings.empty() && AbbrevDecls.empty() && ARanges.empty() &&
+ DebugRanges.empty() && PubNames.Entries.empty() &&
+ PubTypes.Entries.empty() && GNUPubNames.Entries.empty() &&
+ GNUPubTypes.Entries.empty() && CompileUnits.empty() &&
+ DebugLines.empty();
}
namespace yaml {
More information about the llvm-commits
mailing list