llvm/lld/wasm/InputElement.h

//===- InputElement.h ----------------------------------------*- 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
//
//===----------------------------------------------------------------------===//

#ifndef LLD_WASM_INPUT_ELEMENT_H
#define LLD_WASM_INPUT_ELEMENT_H

#include "Config.h"
#include "InputFiles.h"
#include "WriterUtils.h"
#include "lld/Common/LLVM.h"
#include "llvm/Object/Wasm.h"
#include <optional>

namespace lld {
namespace wasm {

// Represents a single element (Global, Tag, Table, etc) within an input
// file.
class InputElement {};

inline WasmInitExpr intConst(uint64_t value, bool is64) {}

class InputGlobal : public InputElement {};

class InputTag : public InputElement {};

class InputTable : public InputElement {};

} // namespace wasm

inline std::string toString(const wasm::InputElement *d) {}

} // namespace lld

#endif // LLD_WASM_INPUT_ELEMENT_H