mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
wasm: add basic debuginfo through name
section (#18130)
This commit is contained in:
parent
5bdf94a7bc
commit
3a06b55388
13 changed files with 541 additions and 109 deletions
|
@ -28,15 +28,15 @@ fn main() {
|
|||
mut ifexpr := m.new_function('if_expr', [.i32_t], [.i64_t])
|
||||
{
|
||||
ifexpr.local_get(0)
|
||||
ifexpr.c_if([], [.i64_t])
|
||||
if_blk := ifexpr.c_if([], [.i64_t])
|
||||
{
|
||||
ifexpr.i64_const(5000)
|
||||
}
|
||||
ifexpr.c_else()
|
||||
ifexpr.c_else(if_blk)
|
||||
{
|
||||
ifexpr.i64_const(-5000)
|
||||
}
|
||||
ifexpr.c_end_if()
|
||||
ifexpr.c_end(if_blk)
|
||||
}
|
||||
m.commit(ifexpr, true)
|
||||
print(m.compile().bytestr())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue