#include "ObjDumper.h"
#include "llvm-readobj.h"
#include "llvm/Object/Wasm.h"
#include "llvm/Support/ScopedPrinter.h"
usingnamespacellvm;
usingnamespaceobject;
namespace {
const EnumEntry<unsigned> WasmSymbolTypes[] = …;
const EnumEntry<uint32_t> WasmSectionTypes[] = …;
const EnumEntry<unsigned> WasmSymbolFlags[] = …;
class WasmDumper : public ObjDumper { … };
void WasmDumper::printFileHeaders() { … }
void WasmDumper::printRelocation(const SectionRef &Section,
const RelocationRef &Reloc) { … }
void WasmDumper::printRelocations() { … }
void WasmDumper::printSymbols(bool ) { … }
void WasmDumper::printSectionHeaders() { … }
void WasmDumper::printSymbol(const SymbolRef &Sym) { … }
}
namespace llvm {
std::unique_ptr<ObjDumper> createWasmDumper(const object::WasmObjectFile &Obj,
ScopedPrinter &Writer) { … }
}