llvm-project/llvm/test/Bitcode/upgrade-implicit-section-name.ll
Arthur Eubanks 5d6d8dcd29
[clang][llvm] Remove "implicit-section-name" attribute (#87906)
D33412/D33413 introduced this to support a clang pragma to set section
names for a symbol depending on if it would be placed in
bss/data/rodata/text, which may not be known until the backend. However,
for text we know that only functions will go there, so just directly set
the section in clang instead of going through a completely separate
attribute.

Autoupgrade the "implicit-section-name" attribute to directly setting
the section on a Fuction.
2024-04-11 12:29:29 -07:00

9 lines
205 B
LLVM

; RUN: llvm-as < %s | llvm-dis - | FileCheck %s
; CHECK: define void @f() section "foo_section"
; CHECK-NOT: "implicit-section-name"
define void @f() "implicit-section-name"="foo_section" {
ret void
}