15 #ifndef LLVM_DEBUGINFO_DICONTEXT_H
16 #define LLVM_DEBUGINFO_DICONTEXT_H
23 #include "llvm/Support/DataTypes.h"
45 return !(*
this == RHS);
57 assert(Index < Frames.size());
64 Frames.push_back(Frame);
172 virtual std::unique_ptr<LoadedObjectInfo>
clone()
const = 0;
virtual bool getLoadedSectionContents(StringRef Name, StringRef &Data) const
If conveniently available, return the content of the given Section.
bool operator==(const DILineInfo &RHS) 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...
virtual ~LoadedObjectInfo()=default
virtual uint64_t getSectionLoadAddress(StringRef Name) const =0
Obtain the Load Address of a section by Name.
DILineInfo - a format-neutral container for source line information.
DIContextKind getKind() const
virtual DILineInfo getLineInfoForAddress(uint64_t Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
uint32_t getNumberOfFrames() const
DILineInfoSpecifier - controls which fields of DILineInfo container should be filled with data...
DILineInfo getFrame(unsigned Index) const
DIContext(DIContextKind K)
DIInliningInfo - a format-neutral container for inlined code description.
DIDumpType
Selects which debug sections get dumped.
bool operator!=(const DILineInfo &RHS) const
virtual void dump(raw_ostream &OS, DIDumpType DumpType=DIDT_All)=0
DILineInfoSpecifier(FileLineInfoKind FLIKind=FileLineInfoKind::Default, FunctionNameKind FNKind=FunctionNameKind::None)
SmallVector< std::pair< uint64_t, DILineInfo >, 16 > DILineInfoTable
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
An inferface for inquiring the load address of a loaded object file to be used by the DIContext imple...
virtual std::unique_ptr< LoadedObjectInfo > clone() const =0
Obtain a copy of this LoadedObjectInfo.
virtual DILineInfoTable getLineInfoForAddressRange(uint64_t Address, uint64_t Size, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
DINameKind FunctionNameKind
virtual DIInliningInfo getInliningInfoForAddress(uint64_t Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.