LLVM  5.0.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::pdb::NativeSession Class Reference

#include "llvm/DebugInfo/PDB/Native/NativeSession.h"

Inheritance diagram for llvm::pdb::NativeSession:
[legend]
Collaboration diagram for llvm::pdb::NativeSession:
[legend]

Public Member Functions

 NativeSession (std::unique_ptr< PDBFile > PdbFile, std::unique_ptr< BumpPtrAllocator > Allocator)
 
 ~NativeSession () override
 
std::unique_ptr
< PDBSymbolCompiland > 
createCompilandSymbol (DbiModuleDescriptor MI)
 
SymIndexId findSymbolByTypeIndex (codeview::TypeIndex TI)
 
uint64_t getLoadAddress () const override
 
void setLoadAddress (uint64_t Address) override
 
std::unique_ptr< PDBSymbolExe > getGlobalScope () override
 
std::unique_ptr< PDBSymbol > getSymbolById (uint32_t SymbolId) const override
 
std::unique_ptr< PDBSymbol > findSymbolByAddress (uint64_t Address, PDB_SymType Type) const override
 
std::unique_ptr
< IPDBEnumLineNumbers > 
findLineNumbers (const PDBSymbolCompiland &Compiland, const IPDBSourceFile &File) const override
 
std::unique_ptr
< IPDBEnumLineNumbers > 
findLineNumbersByAddress (uint64_t Address, uint32_t Length) const override
 
std::unique_ptr
< IPDBEnumSourceFiles > 
findSourceFiles (const PDBSymbolCompiland *Compiland, llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr< IPDBSourceFile > findOneSourceFile (const PDBSymbolCompiland *Compiland, llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr
< IPDBEnumChildren
< PDBSymbolCompiland > > 
findCompilandsForSourceFile (llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr
< PDBSymbolCompiland > 
findOneCompilandForSourceFile (llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr
< IPDBEnumSourceFiles > 
getAllSourceFiles () const override
 
std::unique_ptr
< IPDBEnumSourceFiles > 
getSourceFilesForCompiland (const PDBSymbolCompiland &Compiland) const override
 
std::unique_ptr< IPDBSourceFile > getSourceFileById (uint32_t FileId) const override
 
std::unique_ptr
< IPDBEnumDataStreams > 
getDebugStreams () const override
 
PDBFile & getPDBFile ()
 
const PDBFile & getPDBFile () const
 
- Public Member Functions inherited from llvm::pdb::IPDBSession
virtual ~IPDBSession ()
 
template<typename T >
std::unique_ptr< T > getConcreteSymbolById (uint32_t SymbolId) const
 

Static Public Member Functions

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

Detailed Description

Definition at line 28 of file NativeSession.h.

Constructor & Destructor Documentation

NativeSession::NativeSession ( std::unique_ptr< PDBFile >  PdbFile,
std::unique_ptr< BumpPtrAllocator >  Allocator 
)

Definition at line 60 of file NativeSession.cpp.

NativeSession::~NativeSession ( )
overridedefault

Member Function Documentation

std::unique_ptr< PDBSymbolCompiland > NativeSession::createCompilandSymbol ( DbiModuleDescriptor  MI)

Definition at line 97 of file NativeSession.cpp.

Referenced by llvm::pdb::NativeEnumModules::getChildAtIndex().

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

Definition at line 91 of file NativeSession.cpp.

References llvm::pdb::feature_unsupported.

Referenced by llvm::pdb::loadDataForEXE().

Error NativeSession::createFromPdb ( StringRef  Path,
std::unique_ptr< IPDBSession > &  Session 
)
static
std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > NativeSession::findCompilandsForSourceFile ( llvm::StringRef  Pattern,
PDB_NameSearchFlags  Flags 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 191 of file NativeSession.cpp.

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

Implements llvm::pdb::IPDBSession.

Definition at line 165 of file NativeSession.cpp.

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

Implements llvm::pdb::IPDBSession.

Definition at line 171 of file NativeSession.cpp.

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

Implements llvm::pdb::IPDBSession.

Definition at line 197 of file NativeSession.cpp.

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

Implements llvm::pdb::IPDBSession.

Definition at line 184 of file NativeSession.cpp.

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

Implements llvm::pdb::IPDBSession.

Definition at line 177 of file NativeSession.cpp.

std::unique_ptr< PDBSymbol > NativeSession::findSymbolByAddress ( uint64_t  Address,
PDB_SymType  Type 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 160 of file NativeSession.cpp.

SymIndexId NativeSession::findSymbolByTypeIndex ( codeview::TypeIndex  TI)
std::unique_ptr< IPDBEnumSourceFiles > NativeSession::getAllSourceFiles ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 202 of file NativeSession.cpp.

std::unique_ptr< IPDBEnumDataStreams > NativeSession::getDebugStreams ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 216 of file NativeSession.cpp.

std::unique_ptr< PDBSymbolExe > NativeSession::getGlobalScope ( )
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 141 of file NativeSession.cpp.

References llvm::pdb::PDBSymbol::create().

uint64_t NativeSession::getLoadAddress ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 137 of file NativeSession.cpp.

PDBFile& llvm::pdb::NativeSession::getPDBFile ( )
inline

Definition at line 79 of file NativeSession.h.

const PDBFile& llvm::pdb::NativeSession::getPDBFile ( ) const
inline

Definition at line 80 of file NativeSession.h.

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

Implements llvm::pdb::IPDBSession.

Definition at line 212 of file NativeSession.cpp.

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

Implements llvm::pdb::IPDBSession.

Definition at line 206 of file NativeSession.cpp.

std::unique_ptr< PDBSymbol > NativeSession::getSymbolById ( uint32_t  SymbolId) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 152 of file NativeSession.cpp.

References llvm::pdb::PDBSymbol::create().

void NativeSession::setLoadAddress ( uint64_t  Address)
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 139 of file NativeSession.cpp.


The documentation for this class was generated from the following files: