summaryrefslogtreecommitdiff
path: root/src/ir/local-graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/local-graph.h')
-rw-r--r--src/ir/local-graph.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ir/local-graph.h b/src/ir/local-graph.h
index 111f5c073..8cc92d0fd 100644
--- a/src/ir/local-graph.h
+++ b/src/ir/local-graph.h
@@ -33,8 +33,12 @@ namespace wasm {
struct LocalGraph {
// main API
- // the constructor computes getSetses, the sets affecting each get
- LocalGraph(Function* func);
+ // The constructor computes getSetses, the sets affecting each get.
+ //
+ // If a module is passed in, it is used to find which features are needed in
+ // the computation (for example, if exception handling is disabled, then we
+ // can generate a simpler CFG, as calls cannot throw).
+ LocalGraph(Function* func, Module* module = nullptr);
// The local.sets relevant for an index or a get. The most common case is to
// have a single set; after that, to be a phi of 2 items, so we use a small