LibWasm: Port Wasm::Printer to Core::Stream

This commit is contained in:
Tim Schumacher 2023-01-21 10:29:21 +01:00 committed by Ali Mohammad Pur
commit 409fb0fe79
Notes: sideshowbarker 2024-07-17 02:08:15 +09:00
4 changed files with 17 additions and 19 deletions

View file

@ -34,7 +34,7 @@ Optional<OpCode> instruction_from_name(StringView name)
void Printer::print_indent()
{
for (size_t i = 0; i < m_indent; ++i)
m_stream.write_or_error(" "sv.bytes());
m_stream.write_entire_buffer(" "sv.bytes()).release_value_but_fixme_should_propagate_errors();
}
void Printer::print(Wasm::BlockType const& type)