| 212 | return Idx; |
| 213 | } |
| 214 | uint32_t addCoreMemory(const AST::MemoryType *MT = nullptr) noexcept { |
| 215 | auto &V = getCurrentContext().CoreMemories; |
| 216 | uint32_t Idx = static_cast<uint32_t>(V.size()); |
| 217 | V.push_back(MT); |
| 218 | return Idx; |
| 219 | } |
| 220 | uint32_t addCoreGlobal(const AST::GlobalType *GT = nullptr) noexcept { |
| 221 | auto &V = getCurrentContext().CoreGlobals; |
| 222 | uint32_t Idx = static_cast<uint32_t>(V.size()); |
no test coverage detected