Skip to content

Commit edc3f4f

Browse files
committed
[NFC] [lldb] Unindent DWARFDebugInfoEntry::GetDWARFDeclContext
Reduce code indentation level.
1 parent b3726ec commit edc3f4f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -871,15 +871,15 @@ void DWARFDebugInfoEntry::BuildFunctionAddressRangeTable(
871871
void DWARFDebugInfoEntry::GetDWARFDeclContext(
872872
DWARFUnit *cu, DWARFDeclContext &dwarf_decl_ctx) const {
873873
const dw_tag_t tag = Tag();
874-
if (tag != DW_TAG_compile_unit && tag != DW_TAG_partial_unit) {
875-
dwarf_decl_ctx.AppendDeclContext(tag, GetName(cu));
876-
DWARFDIE parent_decl_ctx_die = GetParentDeclContextDIE(cu);
877-
if (parent_decl_ctx_die && parent_decl_ctx_die.GetDIE() != this) {
878-
if (parent_decl_ctx_die.Tag() != DW_TAG_compile_unit &&
879-
parent_decl_ctx_die.Tag() != DW_TAG_partial_unit)
880-
parent_decl_ctx_die.GetDIE()->GetDWARFDeclContext(
881-
parent_decl_ctx_die.GetCU(), dwarf_decl_ctx);
882-
}
874+
if (tag == DW_TAG_compile_unit || tag == DW_TAG_partial_unit)
875+
return;
876+
dwarf_decl_ctx.AppendDeclContext(tag, GetName(cu));
877+
DWARFDIE parent_decl_ctx_die = GetParentDeclContextDIE(cu);
878+
if (parent_decl_ctx_die && parent_decl_ctx_die.GetDIE() != this) {
879+
if (parent_decl_ctx_die.Tag() != DW_TAG_compile_unit &&
880+
parent_decl_ctx_die.Tag() != DW_TAG_partial_unit)
881+
parent_decl_ctx_die.GetDIE()->GetDWARFDeclContext(
882+
parent_decl_ctx_die.GetCU(), dwarf_decl_ctx);
883883
}
884884
}
885885

0 commit comments

Comments
 (0)