diff options
Diffstat (limited to 'src/ir/module-utils.h')
-rw-r--r-- | src/ir/module-utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ir/module-utils.h b/src/ir/module-utils.h index 0a101e5da..d9fd69428 100644 --- a/src/ir/module-utils.h +++ b/src/ir/module-utils.h @@ -33,6 +33,13 @@ copyFunction(Function* func, Name newName = Name(), std::optional<std::vector<Index>> fileIndexMap = std::nullopt); +// As above, but does not add the copy to the module. +std::unique_ptr<Function> copyFunctionWithoutAdd( + Function* func, + Module& out, + Name newName = Name(), + std::optional<std::vector<Index>> fileIndexMap = std::nullopt); + Global* copyGlobal(Global* global, Module& out); Tag* copyTag(Tag* tag, Module& out); |