Merge branch 'addmainunit3-altlink' into addmainunit3-altlink-sharedstmt
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 18 Jan 2021 04:06:53 +0000 (05:06 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 18 Jan 2021 04:06:53 +0000 (05:06 +0100)
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

index 7b473a5..c1b2880 100644 (file)
@@ -2191,10 +2191,10 @@ void SymbolFileDWARF::FindGlobalVariables(
         if (die.Tag() != DW_TAG_variable)
           return true;
 
-       DWARFCompileUnit *main_cu = llvm::dyn_cast_or_null<DWARFCompileUnit>(main_unit);
-       if (!main_cu)
-         return false;
-       sc.comp_unit = main_cu->GetCompUnit();
+        DWARFCompileUnit *main_cu = llvm::dyn_cast_or_null<DWARFCompileUnit>(main_unit);
+        if (!main_cu)
+          return false;
+        sc.comp_unit = main_cu->GetCompUnit();
 
         if (parent_decl_ctx) {
           if (DWARFASTParser *dwarf_ast = GetDWARFParser(*die.GetMainDWARFUnit(main_unit))) {
@@ -2255,10 +2255,10 @@ void SymbolFileDWARF::FindGlobalVariables(const RegularExpression &regex,
           sc.module_sp = m_objfile_sp->GetModule();
         assert(sc.module_sp);
 
-       DWARFCompileUnit *main_cu = llvm::dyn_cast_or_null<DWARFCompileUnit>(main_unit);
-       if (!main_cu)
-         return false;
-       sc.comp_unit = main_cu->GetCompUnit();
+        DWARFCompileUnit *main_cu = llvm::dyn_cast_or_null<DWARFCompileUnit>(main_unit);
+        if (!main_cu)
+          return false;
+        sc.comp_unit = main_cu->GetCompUnit();
 
         ParseVariables(sc, die, LLDB_INVALID_ADDRESS, false, false, &variables);