AArch64ExternalSymbolizer.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
  13. #define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
  14. #include "llvm/MC/MCDisassembler/MCExternalSymbolizer.h"
  15. namespace llvm {
  16. class AArch64ExternalSymbolizer : public MCExternalSymbolizer {
  17. public:
  18. AArch64ExternalSymbolizer(MCContext &Ctx,
  19. std::unique_ptr<MCRelocationInfo> RelInfo,
  20. LLVMOpInfoCallback GetOpInfo,
  21. LLVMSymbolLookupCallback SymbolLookUp,
  22. void *DisInfo)
  23. : MCExternalSymbolizer(Ctx, std::move(RelInfo), GetOpInfo, SymbolLookUp,
  24. DisInfo) {}
  25. bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream,
  26. int64_t Value, uint64_t Address, bool IsBranch,
  27. uint64_t Offset, uint64_t OpSize,
  28. uint64_t InstSize) override;
  29. };
  30. } // namespace llvm
  31. #endif