[Lldb-commits] [lldb] 3b89794 - Reintroduce accidentally deleted "protected" keyword in SymbolFileDWARF (#69990)
    via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Tue Oct 24 09:27:12 PDT 2023
    
    
  
Author: Augusto Noronha
Date: 2023-10-24T09:27:08-07:00
New Revision: 3b897943045c00509af586a7fbe95fbeaf32c12e
URL: https://github.com/llvm/llvm-project/commit/3b897943045c00509af586a7fbe95fbeaf32c12e
DIFF: https://github.com/llvm/llvm-project/commit/3b897943045c00509af586a7fbe95fbeaf32c12e.diff
LOG: Reintroduce accidentally deleted "protected" keyword in SymbolFileDWARF (#69990)
The "protected" was accidentally removed during refactoring of
SymbolFileDWARF. Reintroduce it and also make DWARFASTParser a friend
class since 040c4f4d98f3306e068521e3c218bdbc170f81f3 was merged and
won't build without it, as it dependeds on a method which was made
public by accident.
Added: 
    
Modified: 
    lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
Removed: 
    
################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
index 646d5d9a471c41c..0818ee206fe06f6 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
@@ -82,6 +82,7 @@ class SymbolFileDWARF : public SymbolFileCommon {
   friend class DebugMapModule;
   friend class DWARFCompileUnit;
   friend class DWARFDIE;
+  friend class DWARFASTParser;
   friend class ::DWARFASTParserClang;
 
   // Static Functions
@@ -321,6 +322,7 @@ class SymbolFileDWARF : public SymbolFileCommon {
     m_file_index = file_index;
   }
 
+protected:
   typedef llvm::DenseMap<const DWARFDebugInfoEntry *, Type *> DIEToTypePtr;
   typedef llvm::DenseMap<const DWARFDebugInfoEntry *, lldb::VariableSP>
       DIEToVariableSP;
        
    
    
More information about the lldb-commits
mailing list