15 #ifndef LLVM_DEBUGINFO_DICONTEXT_H
16 #define LLVM_DEBUGINFO_DICONTEXT_H
50 return !(*
this == RHS);
70 assert(Index < Frames.size());
75 assert(Index < Frames.size());
76 return &Frames[Index];
84 Frames.push_back(Frame);
230 virtual std::unique_ptr<LoadedObjectInfo>
clone()
const = 0;
233 template <
typename Derived,
typename Base = LoadedObjectInfo>
240 template <
typename... Ts>
243 std::unique_ptr<llvm::LoadedObjectInfo>
clone()
const override {
244 return llvm::make_unique<Derived>(
static_cast<const Derived &
>(*this));
250 #endif // LLVM_DEBUGINFO_DICONTEXT_H
virtual uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const
Obtain the Load Address of a section by SectionRef.
virtual bool getLoadedSectionContents(const object::SectionRef &Sec, StringRef &Data) const
If conveniently available, return the content of the given Section.
DILineInfo * getMutableFrame(unsigned Index)
LoadedObjectInfo()=default
LoadedObjectInfoHelper(Ts &&...Args)
bool operator==(const DILineInfo &RHS) const
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
DILineInfo - a format-neutral container for source line information.
DIContextKind getKind() const
LoadedObjectInfoHelper()=default
virtual DILineInfo getLineInfoForAddress(uint64_t Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
Container for dump options that control which debug information will be dumped.
uint32_t getNumberOfFrames() const
virtual bool verify(raw_ostream &OS, DIDumpType DumpType=DIDT_All)
DILineInfoSpecifier - controls which fields of DILineInfo container should be filled with data...
DILineInfo getFrame(unsigned Index) const
DIContext(DIContextKind K)
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
DIInliningInfo - a format-neutral container for inlined code description.
DIDumpType
Selects which debug sections get dumped.
bool operator!=(const DILineInfo &RHS) const
DILineInfoSpecifier(FileLineInfoKind FLIKind=FileLineInfoKind::Default, FunctionNameKind FNKind=FunctionNameKind::None)
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.
std::unique_ptr< llvm::LoadedObjectInfo > clone() const override
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
virtual DILineInfoTable getLineInfoForAddressRange(uint64_t Address, uint64_t Size, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
virtual DIInliningInfo getInliningInfoForAddress(uint64_t Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
virtual ~DIContext()=default
StringRef - Represent a constant reference to a string, i.e.
virtual void dump(raw_ostream &OS, DIDumpOptions DumpOpts)=0
DIGlobal - container for description of a global variable.
This is a value type class that represents a single section in the list of sections in the object fil...