summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 3373a3f20..e0a9cff93 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -638,6 +638,17 @@ Type Function::getLocalType(Index index) {
}
}
+void Function::clearNames() {
+ localNames.clear();
+}
+
+void Function::clearDebugInfo() {
+ localIndices.clear();
+ debugLocations.clear();
+ prologLocation.clear();
+ epilogLocation.clear();
+}
+
FunctionType* Module::getFunctionType(Name name) {
auto iter = functionTypesMap.find(name);
if (iter == functionTypesMap.end()) {
@@ -811,4 +822,8 @@ void Module::updateMaps() {
}
}
+void Module::clearDebugInfo() {
+ debugInfoFileNames.clear();
+}
+
} // namespace wasm