WasmDump.h 971 B

1234567891011121314151617181920212223242526272829303132333435
  1. //===-- WasmDump.h - wasm-specific dumper -----------------------*- 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. #ifndef LLVM_TOOLS_LLVM_OBJDUMP_WASMDUMP_H
  9. #define LLVM_TOOLS_LLVM_OBJDUMP_WASMDUMP_H
  10. #include "llvm/ADT/SmallVector.h"
  11. namespace llvm {
  12. class Error;
  13. namespace object {
  14. class WasmObjectFile;
  15. class ObjectFile;
  16. class RelocationRef;
  17. } // namespace object
  18. namespace objdump {
  19. Error getWasmRelocationValueString(const object::WasmObjectFile *Obj,
  20. const object::RelocationRef &RelRef,
  21. llvm::SmallVectorImpl<char> &Result);
  22. void printWasmFileHeader(const object::ObjectFile *O);
  23. } // namespace objdump
  24. } // namespace llvm
  25. #endif