summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm/wasm-type.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp
index e5493c8d1..2c26f0e21 100644
--- a/src/wasm/wasm-type.cpp
+++ b/src/wasm/wasm-type.cpp
@@ -2490,13 +2490,14 @@ struct CanonicalizationState {
#if TRACE_CANONICALIZATION
void dump() {
+ IndexedTypeNameGenerator print(results);
std::cerr << "Results:\n";
for (size_t i = 0; i < results.size(); ++i) {
- std::cerr << i << ": " << results[i] << "\n";
+ std::cerr << i << ": " << print(results[i]) << "\n";
}
std::cerr << "NewInfos:\n";
for (size_t i = 0; i < newInfos.size(); ++i) {
- std::cerr << asHeapType(newInfos[i]) << "\n";
+ std::cerr << print(asHeapType(newInfos[i])) << "\n";
}
std::cerr << '\n';
}