mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Currently, when creating a named section, the Wasm frontend forces it to use `SectionKind::Data`, whereas in fact C++ does generate code sections with custom names. Patch by Nicholas Wilson Differential Revision: https://reviews.llvm.org/D40906 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320002 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
255 B
LLVM
10 lines
255 B
LLVM
; RUN: llc -mtriple wasm32-unknown-unknown-wasm -O2 -filetype=obj %s -o %t.o
|
|
|
|
; Wasm silently ignores custom sections for code.
|
|
; We had a bug where this cause a crash
|
|
|
|
define hidden void @call_indirect() section "some_section_name" {
|
|
entry:
|
|
ret void
|
|
}
|