llvm/lld/wasm/WriterUtils.cpp

//===- WriterUtils.cpp ----------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include "WriterUtils.h"
#include "lld/Common/ErrorHandler.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/LEB128.h"

#define DEBUG_TYPE

usingnamespacellvm;
usingnamespacellvm::wasm;

namespace lld {
std::string toString(ValType type) {}

std::string toString(const WasmSignature &sig) {}

std::string toString(const WasmGlobalType &type) {}

static std::string toString(const llvm::wasm::WasmLimits &limits) {}

std::string toString(const WasmTableType &type) {}

namespace wasm {
#ifdef LLVM_DEBUG
void debugWrite(uint64_t offset, const Twine &msg) {}
#endif

void writeUleb128(raw_ostream &os, uint64_t number, const Twine &msg) {}

void writeSleb128(raw_ostream &os, int64_t number, const Twine &msg) {}

void writeBytes(raw_ostream &os, const char *bytes, size_t count,
                      const Twine &msg) {}

void writeStr(raw_ostream &os, StringRef string, const Twine &msg) {}

void writeU8(raw_ostream &os, uint8_t byte, const Twine &msg) {}

void writeU32(raw_ostream &os, uint32_t number, const Twine &msg) {}

void writeU64(raw_ostream &os, uint64_t number, const Twine &msg) {}

void writeValueType(raw_ostream &os, ValType type, const Twine &msg) {}

void writeSig(raw_ostream &os, const WasmSignature &sig) {}

void writeI32Const(raw_ostream &os, int32_t number, const Twine &msg) {}

void writeI64Const(raw_ostream &os, int64_t number, const Twine &msg) {}

void writePtrConst(raw_ostream &os, int64_t number, bool is64,
                   const Twine &msg) {}

void writeMemArg(raw_ostream &os, uint32_t alignment, uint64_t offset) {}

void writeInitExpr(raw_ostream &os, const WasmInitExpr &initExpr) {}

void writeInitExprMVP(raw_ostream &os, const WasmInitExprMVP &initExpr) {}

void writeLimits(raw_ostream &os, const WasmLimits &limits) {}

void writeGlobalType(raw_ostream &os, const WasmGlobalType &type) {}

void writeTableType(raw_ostream &os, const WasmTableType &type) {}

void writeImport(raw_ostream &os, const WasmImport &import) {}

void writeExport(raw_ostream &os, const WasmExport &export_) {}

} // namespace wasm
} // namespace lld