[SymbolFile/DWARF] Simplify two functions. NFCI.

llvm-svn: 315199
This commit is contained in:
Davide Italiano 2017-10-09 00:11:49 +00:00
parent e33eb771ca
commit 54bb5ea21a
1 changed files with 2 additions and 8 deletions

View File

@ -392,17 +392,11 @@ lldb::ModuleSP DWARFDIE::GetContainingDWOModule() const {
}
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,