1 //===- DIASession.h - DIA implementation of IPDBSession ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H
13 #include "DIASupport.h"
14 #include "llvm/ADT/StringRef.h"
15 #include "llvm/DebugInfo/PDB/IPDBSession.h"
18 class DIASession : public IPDBSession {
20 explicit DIASession(CComPtr<IDiaSession> DiaSession);
22 static DIASession *createFromPdb(StringRef Path);
24 uint64_t getLoadAddress() const override;
25 void setLoadAddress(uint64_t Address) override;
26 std::unique_ptr<PDBSymbolExe> getGlobalScope() const override;
27 std::unique_ptr<PDBSymbol> getSymbolById(uint32_t SymbolId) const override;
29 std::unique_ptr<IPDBEnumSourceFiles> getAllSourceFiles() const override;
30 std::unique_ptr<IPDBEnumSourceFiles> getSourceFilesForCompiland(
31 const PDBSymbolCompiland &Compiland) const override;
32 std::unique_ptr<IPDBSourceFile>
33 getSourceFileById(uint32_t FileId) const override;
35 std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const override;
38 CComPtr<IDiaSession> Session;