File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
lldb/source/Plugins/SymbolFile/DWARF Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -871,15 +871,15 @@ void DWARFDebugInfoEntry::BuildFunctionAddressRangeTable(
871
871
void DWARFDebugInfoEntry::GetDWARFDeclContext (
872
872
DWARFUnit *cu, DWARFDeclContext &dwarf_decl_ctx) const {
873
873
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);
883
883
}
884
884
}
885
885
You can’t perform that action at this time.
0 commit comments