//===-- WasmDump.cpp - wasm-specific dumper ---------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// /// \file /// This file implements the wasm-specific dumper for llvm-objdump. /// //===----------------------------------------------------------------------===// #include "WasmDump.h" #include "llvm-objdump.h" #include "llvm/Object/Wasm.h" usingnamespacellvm; usingnamespacellvm::object; namespace { class WasmDumper : public objdump::Dumper { … }; } // namespace std::unique_ptr<objdump::Dumper> objdump::createWasmDumper(const object::WasmObjectFile &Obj) { … } void WasmDumper::printPrivateHeaders() { … } Error objdump::getWasmRelocationValueString(const WasmObjectFile *Obj, const RelocationRef &RelRef, SmallVectorImpl<char> &Result) { … }