#include "obj2yaml.h"
#include "llvm/Object/COFF.h"
#include "llvm/ObjectYAML/WasmYAML.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/YAMLTraits.h"
usingnamespacellvm;
WasmSection;
namespace {
class WasmDumper { … };
}
static WasmYAML::Limits makeLimits(const wasm::WasmLimits &Limits) { … }
static WasmYAML::Table makeTable(uint32_t Index,
const wasm::WasmTableType &Type) { … }
std::unique_ptr<WasmYAML::CustomSection>
WasmDumper::dumpCustomSection(const WasmSection &WasmSec) { … }
ErrorOr<WasmYAML::Object *> WasmDumper::dump() { … }
std::error_code wasm2yaml(raw_ostream &Out, const object::WasmObjectFile &Obj) { … }