LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::pdb::DIASession Class Reference

#include "llvm/DebugInfo/PDB/DIA/DIASession.h"

Inheritance diagram for llvm::pdb::DIASession:
Inheritance graph
[legend]
Collaboration diagram for llvm::pdb::DIASession:
Collaboration graph
[legend]

Public Member Functions

 DIASession (CComPtr< IDiaSession > DiaSession)
 
uint64_t getLoadAddress () const override
 
void setLoadAddress (uint64_t Address) override
 
std::unique_ptr< PDBSymbolExegetGlobalScope () override
 
std::unique_ptr< PDBSymbolgetSymbolById (uint32_t SymbolId) const override
 
std::unique_ptr< PDBSymbolfindSymbolByAddress (uint64_t Address, PDB_SymType Type) const override
 
std::unique_ptr< IPDBEnumLineNumbersfindLineNumbers (const PDBSymbolCompiland &Compiland, const IPDBSourceFile &File) const override
 
std::unique_ptr< IPDBEnumLineNumbersfindLineNumbersByAddress (uint64_t Address, uint32_t Length) const override
 
std::unique_ptr< IPDBEnumSourceFilesfindSourceFiles (const PDBSymbolCompiland *Compiland, llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr< IPDBSourceFilefindOneSourceFile (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< PDBSymbolCompilandfindOneCompilandForSourceFile (llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr< IPDBEnumSourceFilesgetAllSourceFiles () const override
 
std::unique_ptr< IPDBEnumSourceFilesgetSourceFilesForCompiland (const PDBSymbolCompiland &Compiland) const override
 
std::unique_ptr< IPDBSourceFilegetSourceFileById (uint32_t FileId) const override
 
std::unique_ptr< IPDBEnumDataStreamsgetDebugStreams () const override
 
std::unique_ptr< IPDBEnumTablesgetEnumTables () const override
 
- Public Member Functions inherited from llvm::pdb::IPDBSession
virtual ~IPDBSession ()
 
template<typename T >
std::unique_ptr< TgetConcreteSymbolById (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 23 of file DIASession.h.

Constructor & Destructor Documentation

◆ DIASession()

DIASession::DIASession ( CComPtr< IDiaSession >  DiaSession)
explicit

Definition at line 92 of file DIASession.cpp.

Referenced by createFromExe(), and createFromPdb().

Member Function Documentation

◆ createFromExe()

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

◆ createFromPdb()

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

◆ findCompilandsForSourceFile()

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

Implements llvm::pdb::IPDBSession.

Definition at line 251 of file DIASession.cpp.

References llvm::ARMBuildAttrs::File, and findOneSourceFile().

Referenced by findOneCompilandForSourceFile().

◆ findLineNumbers()

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

◆ findLineNumbersByAddress()

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

Implements llvm::pdb::IPDBSession.

Definition at line 210 of file DIASession.cpp.

References llvm::pdb::LineNumbers.

◆ findOneCompilandForSourceFile()

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

Implements llvm::pdb::IPDBSession.

Definition at line 260 of file DIASession.cpp.

References findCompilandsForSourceFile().

◆ findOneSourceFile()

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

Implements llvm::pdb::IPDBSession.

Definition at line 241 of file DIASession.cpp.

References findSourceFiles(), and llvm::pdb::SourceFiles.

Referenced by findCompilandsForSourceFile().

◆ findSourceFiles()

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

◆ findSymbolByAddress()

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

◆ getAllSourceFiles()

std::unique_ptr< IPDBEnumSourceFiles > DIASession::getAllSourceFiles ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 268 of file DIASession.cpp.

◆ getDebugStreams()

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

Implements llvm::pdb::IPDBSession.

Definition at line 298 of file DIASession.cpp.

◆ getEnumTables()

std::unique_ptr< IPDBEnumTables > DIASession::getEnumTables ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 306 of file DIASession.cpp.

◆ getGlobalScope()

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

Implements llvm::pdb::IPDBSession.

Definition at line 155 of file DIASession.cpp.

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

◆ getLoadAddress()

uint64_t DIASession::getLoadAddress ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 145 of file DIASession.cpp.

References llvm::success.

◆ getSourceFileById()

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

Implements llvm::pdb::IPDBSession.

Definition at line 290 of file DIASession.cpp.

◆ getSourceFilesForCompiland()

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

◆ getSymbolById()

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

Implements llvm::pdb::IPDBSession.

Definition at line 167 of file DIASession.cpp.

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

◆ setLoadAddress()

void DIASession::setLoadAddress ( uint64_t  Address)
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 151 of file DIASession.cpp.


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