mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-06-30 23:30:28 +00:00
Emit the COFF header when printing out the function. This is important as the header contains two important pieces of information: the storage class for the symbol and the symbol type information. This bit of information is required for the linker to correctly identify the type of symbol that it is dealing with. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207613 91177308-0d34-0410-b5e6-96231b3b80d8
46 lines
1.1 KiB
LLVM
46 lines
1.1 KiB
LLVM
; RUN: llc -mtriple thumbv7-windows-itanium -filetype asm -o - %s \
|
|
; RUN: | FileCheck %s -check-prefix CHECK-ASM
|
|
|
|
; RUN: llc -mtriple thumbv7-windows-itanium -filetype obj -o - %s \
|
|
; RUN: | llvm-readobj -t | FileCheck %s -check-prefix CHECK-OBJECT
|
|
|
|
define arm_aapcs_vfpcc void @external() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; CHECK-ASM: .def external
|
|
; CHECK-ASM: .scl 2
|
|
; CHECK-ASM: .type 32
|
|
; CHECK-ASM: .endef
|
|
; CHECK-ASM: .globl external
|
|
|
|
define internal arm_aapcs_vfpcc void @internal() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; CHECK-ASM: .def internal
|
|
; CHECK-ASM: .scl 3
|
|
; CHECK-ASM: .type 32
|
|
; CHECK-ASM: .endef
|
|
; CHECK-ASM-NOT: .globl internal
|
|
|
|
; CHECK-OBJECT: Symbol {
|
|
; CHECK-OBJECT: Name: external
|
|
; CHECK-OBJECT: Section: .text
|
|
; CHECK-OBJECT: BaseType: Null
|
|
; CHECK-OBJECT: ComplexType: Function
|
|
; CHECK-OBJECT: StorageClass: External
|
|
; CHECK-OBJECT: AuxSymbolCount: 0
|
|
; CHECK-OBJECT: }
|
|
; CHECK-OBJECT: Symbol {
|
|
; CHECK-OBJECT: Name: internal
|
|
; CHECK-OBJECT: Section: .text
|
|
; CHECK-OBJECT: BaseType: Null
|
|
; CHECK-OBJECT: ComplexType: Function
|
|
; CHECK-OBJECT: StorageClass: Static
|
|
; CHECK-OBJECT: AuxSymbolCount: 0
|
|
; CHECK-OBJECT: }
|
|
|