From 044eb2f6afba375a914ac9d8024f8f5142bb912e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:10:56 +0000 Subject: Vendor import of llvm trunk r321017: https://llvm.org/svn/llvm-project/llvm/trunk@321017 --- include/llvm/DebugInfo/PDB/Native/NativeSession.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/llvm/DebugInfo/PDB/Native/NativeSession.h') diff --git a/include/llvm/DebugInfo/PDB/Native/NativeSession.h b/include/llvm/DebugInfo/PDB/Native/NativeSession.h index b16ce231c349..2e68ced46bfe 100644 --- a/include/llvm/DebugInfo/PDB/Native/NativeSession.h +++ b/include/llvm/DebugInfo/PDB/Native/NativeSession.h @@ -22,6 +22,7 @@ #include "llvm/Support/Error.h" namespace llvm { +class MemoryBuffer; namespace pdb { class PDBFile; @@ -31,7 +32,7 @@ public: std::unique_ptr Allocator); ~NativeSession() override; - static Error createFromPdb(StringRef Path, + static Error createFromPdb(std::unique_ptr MB, std::unique_ptr &Session); static Error createFromExe(StringRef Path, std::unique_ptr &Session); @@ -39,6 +40,12 @@ public: std::unique_ptr createCompilandSymbol(DbiModuleDescriptor MI); + std::unique_ptr + createEnumSymbol(codeview::TypeIndex Index); + + std::unique_ptr + createTypeEnumerator(codeview::TypeLeafKind Kind); + SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI); uint64_t getLoadAddress() const override; @@ -76,6 +83,8 @@ public: std::unique_ptr getDebugStreams() const override; + std::unique_ptr getEnumTables() const override; + PDBFile &getPDBFile() { return *Pdb; } const PDBFile &getPDBFile() const { return *Pdb; } -- cgit v1.2.3