| 27 | } |
| 28 | |
| 29 | WasmEdge::AST::TableSection |
| 30 | createTableSec(const WasmEdge::AST::TableType &TableType) { |
| 31 | WasmEdge::AST::TableSection TableSec; |
| 32 | WasmEdge::AST::TableSegment TableSeg; |
| 33 | TableSeg.getTableType() = TableType; |
| 34 | TableSec.getContent() = {TableSeg}; |
| 35 | return TableSec; |
| 36 | } |
| 37 | |
| 38 | WasmEdge::AST::MemorySection |
| 39 | createMemorySec(WasmEdge::AST::MemoryType MemoryType) { |