LLVM  15.0.0git
WasmReader.h
Go to the documentation of this file.
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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIB_OBJCOPY_WASM_WASMREADER_H
10 #define LLVM_LIB_OBJCOPY_WASM_WASMREADER_H
11 
12 #include "WasmObject.h"
13 
14 namespace llvm {
15 namespace objcopy {
16 namespace wasm {
17 
18 class Reader {
19 public:
20  explicit Reader(const object::WasmObjectFile &O) : WasmObj(O) {}
22 
23 private:
24  const object::WasmObjectFile &WasmObj;
25 };
26 
27 } // end namespace wasm
28 } // end namespace objcopy
29 } // end namespace llvm
30 
31 #endif // LLVM_LIB_OBJCOPY_WASM_WASMREADER_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::Expected
Tagged union holding either a T or a Error.
Definition: APFloat.h:41
llvm::objcopy::wasm::Reader
Definition: WasmReader.h:18
llvm::object::WasmObjectFile
Definition: Wasm.h:120
llvm::RISCVFenceField::O
@ O
Definition: RISCVBaseInfo.h:240
llvm::objcopy::wasm::Reader::create
Expected< std::unique_ptr< Object > > create() const
Definition: WasmReader.cpp:18
llvm::objcopy::wasm::Reader::Reader
Reader(const object::WasmObjectFile &O)
Definition: WasmReader.h:20
WasmObject.h