MCPcopy Create free account
hub / github.com/WebAssembly/wabt / WriteDebugName

Function WriteDebugName

src/binary-writer.cc:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void WriteDebugName(Stream* stream, std::string_view name, const char* desc) {
96 std::string_view stripped_name = name;
97 if (!stripped_name.empty()) {
98 // Strip leading $ from name
99 assert(stripped_name.front() == '$');
100 stripped_name.remove_prefix(1);
101 }
102 WriteStr(stream, stripped_name, desc, PrintChars::Yes);
103}
104
105namespace {
106

Callers 2

WriteNamesMethod · 0.85
WriteModuleMethod · 0.85

Calls 3

WriteStrFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected