summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-type.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp
index f1ceca51a..31042835c 100644
--- a/src/wasm/wasm-type.cpp
+++ b/src/wasm/wasm-type.cpp
@@ -1788,7 +1788,7 @@ void TypePrinter::printHeapTypeName(HeapType type) {
print(type);
return;
}
- os << '$' << generator(type).name;
+ generator(type).name.print(os);
#if TRACE_CANONICALIZATION
os << "(;" << ((type.getID() >> 4) % 1000) << ";) ";
#endif
@@ -1915,7 +1915,8 @@ std::ostream& TypePrinter::print(HeapType type) {
auto names = generator(type);
- os << "(type $" << names.name << ' ';
+ os << "(type ";
+ names.name.print(os) << ' ';
if (isTemp(type)) {
os << "(; temp ;) ";
@@ -2018,7 +2019,7 @@ TypePrinter::print(const Struct& struct_,
// TODO: move this to the function for printing fields.
os << " (field ";
if (auto it = fieldNames.find(i); it != fieldNames.end()) {
- os << '$' << it->second << ' ';
+ it->second.print(os) << ' ';
}
print(struct_.fields[i]);
os << ')';