24 std::unique_ptr<IPDBSession> PDBSession)
28 Session->setLoadAddress(ImageBase.
get());
39 std::unique_ptr<PDBSymbol>
Symbol =
41 if (
auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) {
42 Length = Func->getLength();
43 }
else if (
auto Data = dyn_cast_or_null<PDBSymbolData>(Symbol.get())) {
44 Length =
Data->getLength();
55 auto SourceFile = Session->getSourceFileById(LineInfo->getSourceFileId());
59 Result.
FileName = SourceFile->getFileName();
60 Result.
Column = LineInfo->getColumnNumber();
61 Result.
Line = LineInfo->getLineNumber();
79 {LineInfo->getVirtualAddress(), Address.
SectionIndex}, Specifier);
80 Table.
push_back(std::make_pair(LineInfo->getVirtualAddress(), LineEntry));
96 return std::vector<DILocal>();
99 std::string PDBContext::getFunctionName(uint64_t
Address,
102 return std::string();
104 std::unique_ptr<PDBSymbol> FuncSymbol =
106 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get());
114 if (
auto *PS = dyn_cast_or_null<PDBSymbolPublicSymbol>(PublicSym.get())) {
118 if (!Func || Func->getVirtualAddress() == PS->getVirtualAddress())
119 return PS->getName();
123 return Func ? Func->getName() : std::string();
void dump(raw_ostream &OS, DIDumpOptions DIDumpOpts) override
Represents either an error or a value T.
This class represents lattice values for constants.
DILineInfo getLineInfoForAddress(object::SectionedAddress Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
void push_back(const T &Elt)
uint64_t getImageBase() const
void addFrame(const DILineInfo &Frame)
DINameKind
A DINameKind is passed to name search methods to specify a preference regarding the type of name reso...
A format-neutral container for source line information.
DILineInfoTable getLineInfoForAddressRange(object::SectionedAddress Address, uint64_t Size, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
Container for dump options that control which debug information will be dumped.
Controls which fields of DILineInfo container should be filled with data.
A format-neutral container for inlined code description.
DIInliningInfo getInliningInfoForAddress(object::SectionedAddress Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
std::vector< DILocal > getLocalsForAddress(object::SectionedAddress Address) override
SmallVector< std::pair< uint64_t, DILineInfo >, 16 > DILineInfoTable
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...