summaryrefslogtreecommitdiff
path: root/src/ir/module-splitting.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/module-splitting.h')
-rw-r--r--src/ir/module-splitting.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ir/module-splitting.h b/src/ir/module-splitting.h
index dc5bb1998..620993d2d 100644
--- a/src/ir/module-splitting.h
+++ b/src/ir/module-splitting.h
@@ -52,11 +52,15 @@ struct Config {
// exists. May or may not include imported functions, which are always kept in
// the primary module regardless.
std::set<Name> primaryFuncs;
+ // Whether to import placeholder functions into the primary module that will
+ // be called when a secondary function is called before the secondary module
+ // has been loaded.
+ bool usePlaceholders = true;
// The namespace from which to import primary functions into the secondary
// module.
Name importNamespace = "primary";
// The namespace from which to import placeholder functions into the primary
- // module.
+ // module. Ignored if `usePlaceholders` is false.
Name placeholderNamespace = "placeholder";
// The prefix to attach to the name of any newly created exports. This can be
// used to differentiate between "real" exports of the module and exports that