mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10516 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
776 B
LLVM
24 lines
776 B
LLVM
; global_ctors/global_dtors terminator: this is used to add a terminating null
|
|
; value to the initialization list.
|
|
|
|
%struct..TorRec = type { int, void ()* }
|
|
|
|
%llvm.global_ctors = appending global [1 x %struct..TorRec] [
|
|
%struct..TorRec { int 2147483647, void ()* null }
|
|
]
|
|
|
|
%llvm.global_dtors = appending global [1 x %struct..TorRec] [
|
|
%struct..TorRec { int 2147483647, void ()* null }
|
|
]
|
|
|
|
implementation
|
|
|
|
%struct..TorRec* %__llvm_getGlobalCtors() {
|
|
ret %struct..TorRec* getelementptr ([1 x %struct..TorRec]* %llvm.global_ctors,
|
|
long 0, long 0)
|
|
}
|
|
%struct..TorRec* %__llvm_getGlobalDtors() {
|
|
ret %struct..TorRec* getelementptr ([1 x %struct..TorRec]* %llvm.global_dtors,
|
|
long 0, long 0)
|
|
}
|