2003-05-14 12:40:20 +00:00
|
|
|
; global_ctors/global_dtors terminator: this is used to add a terminating null
|
|
|
|
; value to the initialization list.
|
|
|
|
|
2003-05-22 19:30:11 +00:00
|
|
|
%struct..TorRec = type { int, void ()* }
|
2003-05-14 13:09:41 +00:00
|
|
|
|
2003-05-22 19:30:11 +00:00
|
|
|
%llvm.global_ctors = appending global [1 x %struct..TorRec] [
|
|
|
|
%struct..TorRec { int 2147483647, void ()* null }
|
2003-05-14 13:09:41 +00:00
|
|
|
]
|
|
|
|
|
2003-05-22 19:30:11 +00:00
|
|
|
%llvm.global_dtors = appending global [1 x %struct..TorRec] [
|
|
|
|
%struct..TorRec { int 2147483647, void ()* null }
|
2003-05-14 13:09:41 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2003-05-22 19:30:11 +00:00
|
|
|
%struct..TorRec* %__llvm_getGlobalCtors() {
|
|
|
|
ret %struct..TorRec* getelementptr ([1 x %struct..TorRec]* %llvm.global_ctors,
|
2003-05-14 13:09:41 +00:00
|
|
|
long 0, long 0)
|
|
|
|
}
|
2003-05-22 19:30:11 +00:00
|
|
|
%struct..TorRec* %__llvm_getGlobalDtors() {
|
|
|
|
ret %struct..TorRec* getelementptr ([1 x %struct..TorRec]* %llvm.global_dtors,
|
2003-05-14 13:09:41 +00:00
|
|
|
long 0, long 0)
|
|
|
|
}
|