diff options
Diffstat (limited to 'src/ir/names.h')
-rw-r--r-- | src/ir/names.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ir/names.h b/src/ir/names.h index cefeb5b42..46cb239ef 100644 --- a/src/ir/names.h +++ b/src/ir/names.h @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - #ifndef wasm_ir_names_h #define wasm_ir_names_h @@ -88,6 +87,14 @@ inline Name getValidElementSegmentName(Module& module, Name root) { root, [&](Name test) { return !module.getElementSegmentOrNull(test); }); } +class MinifiedNameGenerator { + size_t state = 0; + +public: + // Get a fresh minified name. + std::string getName(); +}; + } // namespace Names } // namespace wasm |