mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
COFF COMDATs (for selection kinds other than 'select any') require at least one non-section symbol in the symbol table. Satisfy this by morally enhancing the linkage from private to internal. Differential Revision: http://reviews.llvm.org/D8394 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232570 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
392 B
LLVM
19 lines
392 B
LLVM
; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -arm-long-calls -o - %s \
|
|
; RUN: | FileCheck %s
|
|
|
|
declare arm_aapcs_vfpcc void @callee()
|
|
|
|
define arm_aapcs_vfpcc void @caller() nounwind {
|
|
entry:
|
|
tail call void @callee()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: caller
|
|
; CHECK: ldr [[REG:r[0-9]+]], [[CPI:LCPI[_0-9]+]]
|
|
; CHECK: bx [[REG]]
|
|
; CHECK: .align 2
|
|
; CHECK: [[CPI]]:
|
|
; CHECK: .long callee
|
|
|