LLVM 20.0.0git
|
#include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::pdb::PDBSymbol | |
static std::unique_ptr< PDBSymbol > | create (const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > RawSymbol) |
static std::unique_ptr< PDBSymbol > | create (const IPDBSession &PDBSession, IPDBRawSymbol &RawSymbol) |
template<typename ConcreteT > | |
static std::unique_ptr< ConcreteT > | createAs (const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > RawSymbol) |
template<typename ConcreteT > | |
static std::unique_ptr< ConcreteT > | createAs (const IPDBSession &PDBSession, IPDBRawSymbol &RawSymbol) |
Protected Member Functions inherited from llvm::pdb::PDBSymbol | |
PDBSymbol (const IPDBSession &PDBSession) | |
PDBSymbol (PDBSymbol &&Other) | |
std::unique_ptr< PDBSymbol > | getSymbolByIdHelper (uint32_t Id) const |
template<typename ConcreteType > | |
std::unique_ptr< ConcreteType > | getConcreteSymbolByIdHelper (uint32_t Id) const |
Protected Attributes inherited from llvm::pdb::PDBSymbol | |
const IPDBSession & | Session |
std::unique_ptr< IPDBRawSymbol > | OwnedRawSymbol |
IPDBRawSymbol * | RawSymbol = nullptr |
Definition at line 21 of file PDBSymbolCompiland.h.
|
overridevirtual |
Dumps the contents of a symbol a raw_ostream.
By default this will just call dump() on the underlying RawSymbol, which allows us to discover unknown properties, but individual implementations of PDBSymbol may override the behavior to only dump known fields.
Implements llvm::pdb::PDBSymbol.
Definition at line 25 of file PDBSymbolCompiland.cpp.
References llvm::pdb::PDBSymDumper::dump().
std::string PDBSymbolCompiland::getSourceFileFullPath | ( | ) | const |
Definition at line 33 of file PDBSymbolCompiland.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), llvm::sys::path::extension(), llvm::pdb::IPDBSession::findOneSourceFile(), llvm::pdb::IPDBRawSymbol::getSourceFileName(), llvm::pdb::IPDBSession::getSourceFilesForCompiland(), llvm::sys::path::is_absolute(), llvm::pdb::NS_CaseInsensitive, llvm::pdb::Path, llvm::pdb::PDBSymbol::RawSymbol, and llvm::pdb::PDBSymbol::Session.
Referenced by getSourceFileName().
std::string PDBSymbolCompiland::getSourceFileName | ( | ) | const |
Definition at line 29 of file PDBSymbolCompiland.cpp.
References llvm::sys::path::filename(), getSourceFileFullPath(), and llvm::StringRef::str().