LLVM API Documentation

AArch64ExternalSymbolizer.h
Go to the documentation of this file.
00001 //===- AArch64ExternalSymbolizer.h - Symbolizer for AArch64 -----*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // Symbolize AArch64 assembly code during disassembly using callbacks.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
00015 #define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
00016 
00017 #include "llvm/MC/MCExternalSymbolizer.h"
00018 
00019 namespace llvm {
00020 
00021 class AArch64ExternalSymbolizer : public MCExternalSymbolizer {
00022 public:
00023   AArch64ExternalSymbolizer(MCContext &Ctx,
00024                             std::unique_ptr<MCRelocationInfo> RelInfo,
00025                             LLVMOpInfoCallback GetOpInfo,
00026                             LLVMSymbolLookupCallback SymbolLookUp,
00027                             void *DisInfo)
00028       : MCExternalSymbolizer(Ctx, std::move(RelInfo), GetOpInfo, SymbolLookUp,
00029                              DisInfo) {}
00030 
00031   bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream,
00032                                 int64_t Value, uint64_t Address, bool IsBranch,
00033                                 uint64_t Offset, uint64_t InstSize) override;
00034 };
00035 
00036 } // namespace llvm
00037 
00038 #endif