mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
b6312032fa
In MCAsmStreamer: .type foo,@function # <--- this is redundant .type foo,@gnu_indirect_function In MCELFStreamer, the latter STT_GNU_IFUNC overrides STT_FUNC. llvm-svn: 368823
15 lines
346 B
LLVM
15 lines
346 B
LLVM
; RUN: llvm-as < %s -o - | llc -filetype=asm | FileCheck %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define internal i64 @foo_ifunc() {
|
|
entry:
|
|
ret i64 0
|
|
}
|
|
; CHECK: .type foo_ifunc,@function
|
|
; CHECK-NEXT: foo_ifunc:
|
|
|
|
@foo = ifunc i32 (i32), i64 ()* @foo_ifunc
|
|
; CHECK: .type foo,@gnu_indirect_function
|
|
; CHECK-NEXT: .set foo, foo_ifunc
|