[Lldb-commits] [lldb] r315199 - [SymbolFile/DWARF] Simplify two functions. NFCI.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 8 17:11:49 PDT 2017
Author: davide
Date: Sun Oct 8 17:11:49 2017
New Revision: 315199
URL: http://llvm.org/viewvc/llvm-project?rev=315199&view=rev
Log:
[SymbolFile/DWARF] Simplify two functions. NFCI.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp?rev=315199&r1=315198&r2=315199&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp Sun Oct 8 17:11:49 2017
@@ -392,17 +392,11 @@ lldb::ModuleSP DWARFDIE::GetContainingDW
}
bool DWARFDIE::HasChildren() const {
- if (m_die)
- return m_die->HasChildren();
- else
- return false;
+ return m_die && m_die->HasChildren();
}
bool DWARFDIE::Supports_DW_AT_APPLE_objc_complete_type() const {
- if (IsValid())
- return GetDWARF()->Supports_DW_AT_APPLE_objc_complete_type(m_cu);
- else
- return false;
+ return IsValid() && GetDWARF()->Supports_DW_AT_APPLE_objc_complete_type(m_cu);
}
size_t DWARFDIE::GetAttributes(DWARFAttributes &attributes,
More information about the lldb-commits
mailing list