Unsafely import a defined type from a host function into this module.
| 471 | |
| 472 | /// Unsafely import a defined type from a host function into this module. |
| 473 | void unsafeImportDefinedType(const AST::SubType &SType) { |
| 474 | Types.push_back(&SType); |
| 475 | const_cast<AST::SubType *>(Types.back()) |
| 476 | ->setTypeIndex(static_cast<uint32_t>(Types.size()) - 1); |
| 477 | } |
| 478 | |
| 479 | /// Unsafely create and add the instance to this module. |
| 480 | template <typename T, typename... Args> |
nothing calls this directly
no test coverage detected