summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h')
-rw-r--r--lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h b/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h
index 54c40a0f8bf..c965870da44 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h
@@ -36,12 +36,12 @@ class PdbIndex;
/// parts of the PDB into a single place, simplifying acess to compile unit
/// information for the callers.
struct CompilandIndexItem {
- CompilandIndexItem(PdbSymUid uid,
+ CompilandIndexItem(PdbCompilandId m_id,
llvm::pdb::ModuleDebugStreamRef debug_stream,
llvm::pdb::DbiModuleDescriptor descriptor);
- // uid of this compile unit.
- PdbSymUid m_uid;
+ // index of this compile unit.
+ PdbCompilandId m_id;
// debug stream.
llvm::pdb::ModuleDebugStreamRef m_debug_stream;
@@ -76,20 +76,16 @@ struct CompilandIndexItem {
/// global compile unit index to |CompilandIndexItem| structures.
class CompileUnitIndex {
PdbIndex &m_index;
- llvm::DenseMap<lldb::user_id_t, std::unique_ptr<CompilandIndexItem>>
- m_comp_units;
+ llvm::DenseMap<uint16_t, std::unique_ptr<CompilandIndexItem>> m_comp_units;
public:
explicit CompileUnitIndex(PdbIndex &index) : m_index(index) {}
CompilandIndexItem &GetOrCreateCompiland(uint16_t modi);
- CompilandIndexItem &GetOrCreateCompiland(PdbSymUid compiland_uid);
const CompilandIndexItem *GetCompiland(uint16_t modi) const;
- const CompilandIndexItem *GetCompiland(PdbSymUid compiland_uid) const;
CompilandIndexItem *GetCompiland(uint16_t modi);
- CompilandIndexItem *GetCompiland(PdbSymUid compiland_uid);
llvm::SmallString<64> GetMainSourceFile(const CompilandIndexItem &item) const;
};
OpenPOWER on IntegriCloud