summaryrefslogtreecommitdiff
path: root/runtime/GCCLibraries/crtend/listend.ll
blob: 5ad8a6379a47b56c3f13aa15f0bc00ba74e10313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
; global_ctors/global_dtors terminator: this is used to add a terminating null
; value to the initialization list.

target endian = little
target pointersize = 32

%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)
}