1 //===- AArch64ExternalSymbolizer.h - Symbolizer for AArch64 -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Symbolize AArch64 assembly code during disassembly using callbacks.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
15 #define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
17 #include "llvm/MC/MCExternalSymbolizer.h"
21 class AArch64ExternalSymbolizer : public MCExternalSymbolizer {
23 AArch64ExternalSymbolizer(MCContext &Ctx,
24 std::unique_ptr<MCRelocationInfo> RelInfo,
25 LLVMOpInfoCallback GetOpInfo,
26 LLVMSymbolLookupCallback SymbolLookUp,
28 : MCExternalSymbolizer(Ctx, std::move(RelInfo), GetOpInfo, SymbolLookUp,
31 bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream,
32 int64_t Value, uint64_t Address, bool IsBranch,
33 uint64_t Offset, uint64_t InstSize) override;