5ad8a6379a47b56c3f13aa15f0bc00ba74e10313
[oota-llvm.git] / runtime / GCCLibraries / crtend / listend.ll
1 ; global_ctors/global_dtors terminator: this is used to add a terminating null
2 ; value to the initialization list.
3
4 target endian = little
5 target pointersize = 32
6
7 %struct..TorRec = type { int, void ()* }
8
9 %llvm.global_ctors = appending global [1 x %struct..TorRec] [
10     %struct..TorRec { int 2147483647, void ()* null }
11   ]
12
13 %llvm.global_dtors = appending global [1 x %struct..TorRec] [
14     %struct..TorRec { int 2147483647, void ()* null }
15   ]
16
17 implementation
18
19 %struct..TorRec* %__llvm_getGlobalCtors() {
20   ret %struct..TorRec* getelementptr ([1 x %struct..TorRec]* %llvm.global_ctors,
21                                      long 0, long 0)
22 }
23 %struct..TorRec* %__llvm_getGlobalDtors() {
24   ret %struct..TorRec* getelementptr ([1 x %struct..TorRec]* %llvm.global_dtors,
25                                      long 0, long 0)
26 }