mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01:00
Static ctors/dtors now work according to spec. Changed class vtable types slightly in some cases. Overridden functions now always take the the type of the first class declaring the method as this parameter. This helps when using headers (w. implementation somewhere else)
10 lines
257 B
LLVM
10 lines
257 B
LLVM
; ModuleID = 'internal.moduleinit_backend'
|
|
|
|
@_d_moduleinfo_array = appending constant [1 x i8*] [ i8* null ]
|
|
|
|
define i8** @_d_get_moduleinfo_array() {
|
|
entry:
|
|
%tmp = getelementptr [1 x i8*]* @_d_moduleinfo_array, i32 0, i32 0
|
|
ret i8** %tmp
|
|
}
|