16 #ifndef LLVM_MC_MCDISASSEMBLER_MCEXTERNALSYMBOLIZER_H 17 #define LLVM_MC_MCDISASSEMBLER_MCEXTERNALSYMBOLIZER_H 42 std::unique_ptr<MCRelocationInfo>
RelInfo,
46 SymbolLookUp(symbolLookUp), DisInfo(disInfo) {}
50 uint64_t
Offset, uint64_t InstSize)
override;
53 uint64_t Address)
override;
std::unique_ptr< MCRelocationInfo > RelInfo
This class represents lattice values for constants.
Symbolize using user-provided, C API, callbacks.
void * DisInfo
The pointer to the block of symbolic information for above call back.
int(* LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset, uint64_t Size, int TagType, void *TagBuf)
The type for the operand information call back function.
Context object for machine code objects.
Instances of this class represent a single low-level machine instruction.
MCExternalSymbolizer(MCContext &Ctx, std::unique_ptr< MCRelocationInfo > RelInfo, LLVMOpInfoCallback getOpInfo, LLVMSymbolLookupCallback symbolLookUp, void *disInfo)
Symbolize and annotate disassembled instructions.
void tryAddingPcLoadReferenceComment(raw_ostream &CommentStream, int64_t Value, uint64_t Address) override
Try to add a comment on the PC-relative load.
bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream, int64_t Value, uint64_t Address, bool IsBranch, uint64_t Offset, uint64_t InstSize) override
Try to add a symbolic operand instead of Value to the MCInst.
LLVM Value Representation.
LLVMOpInfoCallback GetOpInfo
This class implements an extremely fast bulk output stream that can only output to a stream...
const char *(* LLVMSymbolLookupCallback)(void *DisInfo, uint64_t ReferenceValue, uint64_t *ReferenceType, uint64_t ReferencePC, const char **ReferenceName)
The type for the symbol lookup function.
LLVMSymbolLookupCallback SymbolLookUp
The function to lookup a symbol name.