forked from OSchip/llvm-project
[SymbolFile/DWARF] Simplify two functions. NFCI.
llvm-svn: 315199
This commit is contained in:
parent
e33eb771ca
commit
54bb5ea21a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue