xref: /freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/WasmDump.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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 
9 #ifndef LLVM_TOOLS_LLVM_OBJDUMP_WASMDUMP_H
10 #define LLVM_TOOLS_LLVM_OBJDUMP_WASMDUMP_H
11 
12 #include "llvm/ADT/SmallVector.h"
13 
14 namespace llvm {
15 
16 class Error;
17 
18 namespace object {
19 class WasmObjectFile;
20 class ObjectFile;
21 class RelocationRef;
22 } // namespace object
23 
24 namespace objdump {
25 
26 Error getWasmRelocationValueString(const object::WasmObjectFile *Obj,
27                                    const object::RelocationRef &RelRef,
28                                    llvm::SmallVectorImpl<char> &Result);
29 
30 void printWasmFileHeader(const object::ObjectFile *O);
31 
32 } // namespace objdump
33 } // namespace llvm
34 
35 #endif
36