LLVM: include/llvm/DebugInfo/PDB/DIA/DIASession.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H

10#define LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H

11

15

16#include <system_error>

17

18namespace llvm {

20

21namespace pdb {

23public:

24 explicit DIASession(CComPtr DiaSession);

25

27 std::unique_ptr &Session);

29 std::unique_ptr &Session);

30

33 std::unique_ptr getGlobalScope() override;

35

40

48

49 std::unique_ptr

52 std::unique_ptr

54 std::unique_ptr

56 std::unique_ptr

59

60 std::unique_ptr

63 std::unique_ptr

67 std::unique_ptr<IPDBEnumChildren>

70 std::unique_ptr

73 std::unique_ptr getAllSourceFiles() const override;

76 std::unique_ptr

78

79 std::unique_ptr getDebugStreams() const override;

80

81 std::unique_ptr getEnumTables() const override;

82

83 std::unique_ptr getInjectedSources() const override;

84

85 std::unique_ptr getSectionContribs() const override;

86

87 std::unique_ptr getFrameData() const override;

88private:

89 CComPtr Session;

90};

91}

92}

93#endif

Lightweight error class with error context and mandatory checking.

StringRef - Represent a constant reference to a string, i.e.

std::unique_ptr< IPDBSourceFile > findOneSourceFile(const PDBSymbolCompiland *Compiland, llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override

std::unique_ptr< IPDBEnumSourceFiles > findSourceFiles(const PDBSymbolCompiland *Compiland, llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override

std::unique_ptr< IPDBEnumLineNumbers > findLineNumbersByRVA(uint32_t RVA, uint32_t Length) const override

std::unique_ptr< IPDBEnumSourceFiles > getSourceFilesForCompiland(const PDBSymbolCompiland &Compiland) const override

std::unique_ptr< IPDBEnumLineNumbers > findLineNumbersByAddress(uint64_t Address, uint32_t Length) const override

static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)

uint64_t getLoadAddress() const override

std::unique_ptr< IPDBEnumSourceFiles > getAllSourceFiles() const override

bool addressForVA(uint64_t VA, uint32_t &Section, uint32_t &Offset) const override

std::unique_ptr< PDBSymbolExe > getGlobalScope() override

std::unique_ptr< PDBSymbol > findSymbolByAddress(uint64_t Address, PDB_SymType Type) override

std::unique_ptr< IPDBEnumInjectedSources > getInjectedSources() const override

std::unique_ptr< PDBSymbolCompiland > findOneCompilandForSourceFile(llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override

DIASession(CComPtr< IDiaSession > DiaSession)

std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > findCompilandsForSourceFile(llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override

bool setLoadAddress(uint64_t Address) override

static Error createFromPdb(StringRef Path, std::unique_ptr< IPDBSession > &Session)

std::unique_ptr< IPDBEnumLineNumbers > findLineNumbers(const PDBSymbolCompiland &Compiland, const IPDBSourceFile &File) const override

std::unique_ptr< IPDBEnumDataStreams > getDebugStreams() const override

bool addressForRVA(uint32_t RVA, uint32_t &Section, uint32_t &Offset) const override

std::unique_ptr< PDBSymbol > getSymbolById(SymIndexId SymbolId) const override

std::unique_ptr< IPDBSourceFile > getSourceFileById(uint32_t FileId) const override

std::unique_ptr< IPDBEnumFrameData > getFrameData() const override

std::unique_ptr< IPDBEnumLineNumbers > findLineNumbersBySectOffset(uint32_t Section, uint32_t Offset, uint32_t Length) const override

std::unique_ptr< PDBSymbol > findSymbolByRVA(uint32_t RVA, PDB_SymType Type) override

std::unique_ptr< IPDBEnumTables > getEnumTables() const override

std::unique_ptr< PDBSymbol > findSymbolBySectOffset(uint32_t Section, uint32_t Offset, PDB_SymType Type) override

std::unique_ptr< IPDBEnumSectionContribs > getSectionContribs() const override

IPDBSession defines an interface used to provide a context for querying debug information from a debu...

IPDBSourceFile defines an interface used to represent source files whose information are stored in th...

PDB_NameSearchFlags

Defines flags used for enumerating child symbols.

PDB_SymType

These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....

This is an optimization pass for GlobalISel generic memory operations.