Teach TypeSystem about PDBASTParser

Currently, only ClangASTContext knows about PDBASTParser. Eventually
we want the TypeSystem to have getters/setters for the base parser
and then have the TypeSystem subclasses know about the proper
PDBASTParser subclasses. This is similar to how DWARFASTParsers work.

llvm-svn: 357131
This commit is contained in:
Nathan Lanza 2019-03-27 23:00:47 +00:00
parent b2978c0203
commit 50a1186381
2 changed files with 3 additions and 1 deletions

View File

@ -454,7 +454,7 @@ public:
// TypeSystem methods // TypeSystem methods
//------------------------------------------------------------------ //------------------------------------------------------------------
DWARFASTParser *GetDWARFParser() override; DWARFASTParser *GetDWARFParser() override;
PDBASTParser *GetPDBParser(); PDBASTParser *GetPDBParser() override;
//------------------------------------------------------------------ //------------------------------------------------------------------
// ClangASTContext callbacks for external source lookups. // ClangASTContext callbacks for external source lookups.

View File

@ -25,6 +25,7 @@
class DWARFDIE; class DWARFDIE;
class DWARFASTParser; class DWARFASTParser;
class PDBASTParser;
namespace lldb_private { namespace lldb_private {
@ -91,6 +92,7 @@ public:
virtual void Finalize() {} virtual void Finalize() {}
virtual DWARFASTParser *GetDWARFParser() { return nullptr; } virtual DWARFASTParser *GetDWARFParser() { return nullptr; }
virtual PDBASTParser *GetPDBParser() { return nullptr; }
virtual SymbolFile *GetSymbolFile() const { return m_sym_file; } virtual SymbolFile *GetSymbolFile() const { return m_sym_file; }