brintos

brintos / llvm-project-archived public Read only

0
0
Text · 855 B · d71660f Raw
32 lines · c
1//===- WasmReader.h ---------------------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIB_OBJCOPY_WASM_WASMREADER_H10#define LLVM_LIB_OBJCOPY_WASM_WASMREADER_H11 12#include "WasmObject.h"13 14namespace llvm {15namespace objcopy {16namespace wasm {17 18class Reader {19public:20  explicit Reader(const object::WasmObjectFile &O) : WasmObj(O) {}21  Expected<std::unique_ptr<Object>> create() const;22 23private:24  const object::WasmObjectFile &WasmObj;25};26 27} // end namespace wasm28} // end namespace objcopy29} // end namespace llvm30 31#endif // LLVM_LIB_OBJCOPY_WASM_WASMREADER_H32