summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h')
-rw-r--r--lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h b/lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h
index 4794c5b30c8..76e263e1e38 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h
@@ -43,6 +43,9 @@ struct PdbCompilandId {
};
struct PdbCompilandSymId {
+ PdbCompilandSymId() = default;
+ PdbCompilandSymId(uint16_t modi, uint32_t offset)
+ : modi(modi), offset(offset) {}
// 0-based index of module in PDB
uint16_t modi = 0;
@@ -53,6 +56,10 @@ struct PdbCompilandSymId {
};
struct PdbGlobalSymId {
+ PdbGlobalSymId() = default;
+ PdbGlobalSymId(uint32_t offset, bool is_public)
+ : offset(offset), is_public(is_public) {}
+
// Offset of symbol's record in globals or publics stream.
uint32_t offset = 0;
@@ -62,6 +69,10 @@ struct PdbGlobalSymId {
};
struct PdbTypeSymId {
+ PdbTypeSymId() = default;
+ PdbTypeSymId(llvm::codeview::TypeIndex index, bool is_ipi = false)
+ : index(index), is_ipi(is_ipi) {}
+
// The index of the of the type in the TPI or IPI stream.
llvm::codeview::TypeIndex index;
OpenPOWER on IntegriCloud