| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 1 | //===-- SymbolFilePDB.h -------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef lldb_Plugins_SymbolFile_PDB_SymbolFilePDB_h_ |
| 11 | #define lldb_Plugins_SymbolFile_PDB_SymbolFilePDB_h_ |
| 12 | |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 13 | #include "lldb/Core/UniqueCStringMap.h" |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 14 | #include "lldb/Symbol/SymbolFile.h" |
| Zachary Turner | fb1a0a0 | 2017-03-06 18:34:25 +0000 | [diff] [blame] | 15 | #include "lldb/Utility/UserID.h" |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 16 | |
| Zachary Turner | 42dff79 | 2016-04-15 00:21:26 +0000 | [diff] [blame] | 17 | #include "llvm/ADT/DenseMap.h" |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 18 | #include "llvm/DebugInfo/PDB/IPDBSession.h" |
| 19 | #include "llvm/DebugInfo/PDB/PDB.h" |
| Aaron Smith | 10a0257 | 2018-01-13 06:58:18 +0000 | [diff] [blame] | 20 | #include "llvm/DebugInfo/PDB/PDBSymbolExe.h" |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 21 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 22 | class SymbolFilePDB : public lldb_private::SymbolFile { |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 23 | public: |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 24 | //------------------------------------------------------------------ |
| 25 | // Static Functions |
| 26 | //------------------------------------------------------------------ |
| 27 | static void Initialize(); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 28 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 29 | static void Terminate(); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 30 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 31 | static void DebuggerInitialize(lldb_private::Debugger &debugger); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 32 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 33 | static lldb_private::ConstString GetPluginNameStatic(); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 34 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 35 | static const char *GetPluginDescriptionStatic(); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 36 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 37 | static lldb_private::SymbolFile * |
| 38 | CreateInstance(lldb_private::ObjectFile *obj_file); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 39 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 40 | //------------------------------------------------------------------ |
| 41 | // Constructors and Destructors |
| 42 | //------------------------------------------------------------------ |
| 43 | SymbolFilePDB(lldb_private::ObjectFile *ofile); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 44 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 45 | ~SymbolFilePDB() override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 46 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 47 | uint32_t CalculateAbilities() override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 48 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 49 | void InitializeObject() override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 50 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 51 | //------------------------------------------------------------------ |
| 52 | // Compile Unit function calls |
| 53 | //------------------------------------------------------------------ |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 54 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 55 | uint32_t GetNumCompileUnits() override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 56 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 57 | lldb::CompUnitSP ParseCompileUnitAtIndex(uint32_t index) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 58 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 59 | lldb::LanguageType |
| 60 | ParseCompileUnitLanguage(const lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 61 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 62 | size_t |
| 63 | ParseCompileUnitFunctions(const lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 64 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 65 | bool |
| 66 | ParseCompileUnitLineTable(const lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 67 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 68 | bool |
| 69 | ParseCompileUnitDebugMacros(const lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 70 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 71 | bool ParseCompileUnitSupportFiles( |
| 72 | const lldb_private::SymbolContext &sc, |
| 73 | lldb_private::FileSpecList &support_files) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 74 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 75 | bool ParseImportedModules( |
| 76 | const lldb_private::SymbolContext &sc, |
| 77 | std::vector<lldb_private::ConstString> &imported_modules) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 78 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 79 | size_t ParseFunctionBlocks(const lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 80 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 81 | size_t ParseTypes(const lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 82 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 83 | size_t |
| 84 | ParseVariablesForContext(const lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 85 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 86 | lldb_private::Type *ResolveTypeUID(lldb::user_id_t type_uid) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 87 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 88 | bool CompleteType(lldb_private::CompilerType &compiler_type) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 89 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 90 | lldb_private::CompilerDecl GetDeclForUID(lldb::user_id_t uid) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 91 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 92 | lldb_private::CompilerDeclContext |
| 93 | GetDeclContextForUID(lldb::user_id_t uid) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 94 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 95 | lldb_private::CompilerDeclContext |
| 96 | GetDeclContextContainingUID(lldb::user_id_t uid) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 97 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 98 | void |
| 99 | ParseDeclsForContext(lldb_private::CompilerDeclContext decl_ctx) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 100 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 101 | uint32_t ResolveSymbolContext(const lldb_private::Address &so_addr, |
| 102 | uint32_t resolve_scope, |
| 103 | lldb_private::SymbolContext &sc) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 104 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 105 | uint32_t |
| 106 | ResolveSymbolContext(const lldb_private::FileSpec &file_spec, uint32_t line, |
| 107 | bool check_inlines, uint32_t resolve_scope, |
| 108 | lldb_private::SymbolContextList &sc_list) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 109 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 110 | uint32_t |
| 111 | FindGlobalVariables(const lldb_private::ConstString &name, |
| 112 | const lldb_private::CompilerDeclContext *parent_decl_ctx, |
| 113 | bool append, uint32_t max_matches, |
| 114 | lldb_private::VariableList &variables) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 115 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 116 | uint32_t FindGlobalVariables(const lldb_private::RegularExpression ®ex, |
| 117 | bool append, uint32_t max_matches, |
| 118 | lldb_private::VariableList &variables) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 119 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 120 | uint32_t |
| 121 | FindFunctions(const lldb_private::ConstString &name, |
| 122 | const lldb_private::CompilerDeclContext *parent_decl_ctx, |
| 123 | uint32_t name_type_mask, bool include_inlines, bool append, |
| 124 | lldb_private::SymbolContextList &sc_list) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 125 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 126 | uint32_t FindFunctions(const lldb_private::RegularExpression ®ex, |
| 127 | bool include_inlines, bool append, |
| 128 | lldb_private::SymbolContextList &sc_list) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 129 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 130 | void GetMangledNamesForFunction( |
| 131 | const std::string &scope_qualified_name, |
| 132 | std::vector<lldb_private::ConstString> &mangled_names) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 133 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 134 | uint32_t |
| 135 | FindTypes(const lldb_private::SymbolContext &sc, |
| 136 | const lldb_private::ConstString &name, |
| 137 | const lldb_private::CompilerDeclContext *parent_decl_ctx, |
| 138 | bool append, uint32_t max_matches, |
| 139 | llvm::DenseSet<lldb_private::SymbolFile *> &searched_symbol_files, |
| 140 | lldb_private::TypeMap &types) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 141 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 142 | size_t FindTypes(const std::vector<lldb_private::CompilerContext> &context, |
| 143 | bool append, lldb_private::TypeMap &types) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 144 | |
| Aaron Smith | 364cbfe | 2017-12-28 06:29:59 +0000 | [diff] [blame] | 145 | void FindTypesByRegex(const lldb_private::RegularExpression ®ex, |
| Aaron Smith | c8316ed | 2018-03-22 03:44:51 +0000 | [diff] [blame^] | 146 | uint32_t max_matches, lldb_private::TypeMap &types); |
| Aaron Smith | 364cbfe | 2017-12-28 06:29:59 +0000 | [diff] [blame] | 147 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 148 | lldb_private::TypeList *GetTypeList() override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 149 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 150 | size_t GetTypes(lldb_private::SymbolContextScope *sc_scope, |
| 151 | uint32_t type_mask, |
| 152 | lldb_private::TypeList &type_list) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 153 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 154 | lldb_private::TypeSystem * |
| 155 | GetTypeSystemForLanguage(lldb::LanguageType language) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 156 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 157 | lldb_private::CompilerDeclContext FindNamespace( |
| 158 | const lldb_private::SymbolContext &sc, |
| 159 | const lldb_private::ConstString &name, |
| 160 | const lldb_private::CompilerDeclContext *parent_decl_ctx) override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 161 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 162 | lldb_private::ConstString GetPluginName() override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 163 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 164 | uint32_t GetPluginVersion() override; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 165 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 166 | llvm::pdb::IPDBSession &GetPDBSession(); |
| Zachary Turner | 42dff79 | 2016-04-15 00:21:26 +0000 | [diff] [blame] | 167 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 168 | const llvm::pdb::IPDBSession &GetPDBSession() const; |
| Zachary Turner | 42dff79 | 2016-04-15 00:21:26 +0000 | [diff] [blame] | 169 | |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 170 | private: |
| Aaron Smith | c8316ed | 2018-03-22 03:44:51 +0000 | [diff] [blame^] | 171 | lldb::CompUnitSP ParseCompileUnitForUID(uint32_t id, |
| 172 | uint32_t index = UINT32_MAX); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 173 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 174 | bool ParseCompileUnitLineTable(const lldb_private::SymbolContext &sc, |
| 175 | uint32_t match_line); |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 176 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 177 | void BuildSupportFileIdToSupportFileIndexMap( |
| Aaron Smith | 10a0257 | 2018-01-13 06:58:18 +0000 | [diff] [blame] | 178 | const llvm::pdb::PDBSymbolCompiland &pdb_compiland, |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 179 | llvm::DenseMap<uint32_t, uint32_t> &index_map) const; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 180 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 181 | void FindTypesByName(const std::string &name, uint32_t max_matches, |
| 182 | lldb_private::TypeMap &types); |
| Zachary Turner | 42dff79 | 2016-04-15 00:21:26 +0000 | [diff] [blame] | 183 | |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 184 | lldb::CompUnitSP |
| 185 | GetCompileUnitContainsAddress(const lldb_private::Address &so_addr); |
| 186 | |
| Aaron Smith | c8316ed | 2018-03-22 03:44:51 +0000 | [diff] [blame^] | 187 | typedef std::vector<lldb_private::Type *> TypeCollection; |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 188 | |
| Aaron Smith | c8316ed | 2018-03-22 03:44:51 +0000 | [diff] [blame^] | 189 | void GetTypesForPDBSymbol(const llvm::pdb::PDBSymbol &pdb_symbol, |
| 190 | uint32_t type_mask, |
| 191 | TypeCollection &type_collection); |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 192 | |
| Aaron Smith | c8316ed | 2018-03-22 03:44:51 +0000 | [diff] [blame^] | 193 | lldb_private::Function * |
| 194 | ParseCompileUnitFunctionForPDBFunc(const llvm::pdb::PDBSymbolFunc &pdb_func, |
| 195 | const lldb_private::SymbolContext &sc); |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 196 | |
| Aaron Smith | e664b5d | 2018-03-19 21:14:19 +0000 | [diff] [blame] | 197 | void GetCompileUnitIndex(const llvm::pdb::PDBSymbolCompiland &pdb_compiland, |
| Aaron Smith | 10a0257 | 2018-01-13 06:58:18 +0000 | [diff] [blame] | 198 | uint32_t &index); |
| 199 | |
| Aaron Smith | 10a0257 | 2018-01-13 06:58:18 +0000 | [diff] [blame] | 200 | std::unique_ptr<llvm::pdb::PDBSymbolCompiland> |
| 201 | GetPDBCompilandByUID(uint32_t uid); |
| 202 | |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 203 | lldb_private::Mangled |
| Aaron Smith | e664b5d | 2018-03-19 21:14:19 +0000 | [diff] [blame] | 204 | GetMangledForPDBFunc(const llvm::pdb::PDBSymbolFunc &pdb_func); |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 205 | |
| Aaron Smith | e664b5d | 2018-03-19 21:14:19 +0000 | [diff] [blame] | 206 | bool ResolveFunction(const llvm::pdb::PDBSymbolFunc &pdb_func, |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 207 | bool include_inlines, |
| 208 | lldb_private::SymbolContextList &sc_list); |
| 209 | |
| 210 | bool ResolveFunction(uint32_t uid, bool include_inlines, |
| 211 | lldb_private::SymbolContextList &sc_list); |
| 212 | |
| 213 | void CacheFunctionNames(); |
| 214 | |
| 215 | bool DeclContextMatchesThisSymbolFile( |
| 216 | const lldb_private::CompilerDeclContext *decl_ctx); |
| 217 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 218 | llvm::DenseMap<uint32_t, lldb::CompUnitSP> m_comp_units; |
| 219 | llvm::DenseMap<uint32_t, lldb::TypeSP> m_types; |
| Zachary Turner | 42dff79 | 2016-04-15 00:21:26 +0000 | [diff] [blame] | 220 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 221 | std::vector<lldb::TypeSP> m_builtin_types; |
| 222 | std::unique_ptr<llvm::pdb::IPDBSession> m_session_up; |
| Aaron Smith | 10a0257 | 2018-01-13 06:58:18 +0000 | [diff] [blame] | 223 | std::unique_ptr<llvm::pdb::PDBSymbolExe> m_global_scope_up; |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 224 | uint32_t m_cached_compile_unit_count; |
| 225 | std::unique_ptr<lldb_private::CompilerDeclContext> m_tu_decl_ctx_up; |
| Aaron Smith | 7ac1c78 | 2018-02-09 05:31:28 +0000 | [diff] [blame] | 226 | |
| 227 | lldb_private::UniqueCStringMap<uint32_t> m_func_full_names; |
| 228 | lldb_private::UniqueCStringMap<uint32_t> m_func_base_names; |
| 229 | lldb_private::UniqueCStringMap<uint32_t> m_func_method_names; |
| Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 230 | }; |
| 231 | |
| 232 | #endif // lldb_Plugins_SymbolFile_PDB_SymbolFilePDB_h_ |