diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 7d6306ef7..48b6f2217 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -45,6 +45,11 @@ void setTypeSystem(TypeSystem system); TypeSystem getTypeSystem(); +// Dangerous! Frees all types and heap types that have ever been created and +// resets the type system's internal state. This is only really meant to be used +// for tests. +void destroyAllTypesForTestingPurposesOnly(); + // The types defined in this file. All of them are small and typically passed by // value except for `Tuple` and `Struct`, which may own an unbounded amount of // data. |