• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- AArch64ExternalSymbolizer.h - Symbolizer for AArch64 -----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Symbolize AArch64 assembly code during disassembly using callbacks.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
14 #define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
15 
16 #include "llvm/MC/MCDisassembler/MCExternalSymbolizer.h"
17 #include <utility>
18 
19 namespace llvm {
20 
21 class AArch64ExternalSymbolizer : public MCExternalSymbolizer {
22 public:
AArch64ExternalSymbolizer(MCContext & Ctx,std::unique_ptr<MCRelocationInfo> RelInfo,LLVMOpInfoCallback GetOpInfo,LLVMSymbolLookupCallback SymbolLookUp,void * DisInfo)23   AArch64ExternalSymbolizer(MCContext &Ctx,
24                             std::unique_ptr<MCRelocationInfo> RelInfo,
25                             LLVMOpInfoCallback GetOpInfo,
26                             LLVMSymbolLookupCallback SymbolLookUp,
27                             void *DisInfo)
28       : MCExternalSymbolizer(Ctx, std::move(RelInfo), GetOpInfo, SymbolLookUp,
29                              DisInfo) {}
30 
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;
34 };
35 
36 } // namespace llvm
37 
38 #endif
39