diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index 63a6fe79c..c5db2fbd3 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1263,7 +1263,7 @@ using StackIR = std::vector<StackInst*>; class Function : public Importable { public: Name name; - Signature sig; // parameters and return value + Signature sig; // parameters and return value IRProfile profile = IRProfile::Normal; std::vector<Type> vars; // non-param locals @@ -1328,6 +1328,7 @@ public: Name getLocalNameOrGeneric(Index index); bool hasLocalName(Index index) const; + void setLocalName(Index index, Name name); void clearNames(); void clearDebugInfo(); @@ -1502,6 +1503,9 @@ public: FeatureSet features = FeatureSet::MVP; bool hasFeaturesSection = false; + // Module name, if specified. Serves a documentary role only. + Name name; + MixedArena allocator; private: |