Path: blob/main/contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmReader.h
35269 views
//===- WasmReader.h ---------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_OBJCOPY_WASM_WASMREADER_H9#define LLVM_LIB_OBJCOPY_WASM_WASMREADER_H1011#include "WasmObject.h"1213namespace llvm {14namespace objcopy {15namespace wasm {1617class Reader {18public:19explicit Reader(const object::WasmObjectFile &O) : WasmObj(O) {}20Expected<std::unique_ptr<Object>> create() const;2122private:23const object::WasmObjectFile &WasmObj;24};2526} // end namespace wasm27} // end namespace objcopy28} // end namespace llvm2930#endif // LLVM_LIB_OBJCOPY_WASM_WASMREADER_H313233