Files
clang-p2996/lld/test/wasm/debuginfo-undefined-global.s
Gabriel Ravier 5dbd8faad5 [lld] Fixed a number of typos
I went over the output of the following mess of a command:

`(ulimit -m 2000000; ulimit -v 2000000; git ls-files -z | parallel --xargs -0 cat | aspell list --mode=none --ignore-case | grep -E '^[A-Za-z][a-z]*$' | sort | uniq -c | sort -n | grep -vE '.{25}' | aspell pipe -W3 | grep : | cut -d' ' -f2 | less)`

and proceeded to spend a few days looking at it to find probable typos
and fixed a few hundred of them in all of the llvm project (note, the
ones I found are not anywhere near all of them, but it seems like a
good start).

Differential Revision: https://reviews.llvm.org/D130982
2022-08-02 09:52:31 -04:00

25 lines
706 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
# RUN: wasm-ld -o %t.wasm %t.o
# RUN: obj2yaml %t.wasm | FileCheck %s
# Debug sections are allowed to contains references to non-live symbols that
# then get GC'd. In this test the .debug_info section contains a reference to
# foo which is not otherwise used and will not be marked a live in the output.
# Verify the tombstone value is written to debug_info section.
.globaltype foo, i32
.globl _start
_start:
.functype _start () -> ()
end_function
.section .debug_info,"",@
.int32 foo
foo:
# CHECK: - Type: CUSTOM
# CHECK-NEXT: Name: .debug_info
# CHECK-NEXT: Payload: FFFFFFFF