Mercurial > projects > ldc
comparison gen/toir.cpp @ 1161:f528e55fb32f
Force initialize the runtime module in Module::genLLVMModule. It is required
for all non-trivial D modules anyway, so why load it lazily? This fixes
run/typeid_83.d (DtoDeclareTypeInfo expects runtime to be initialized)
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 28 Mar 2009 20:01:37 +0100 |
parents | 521dd1626d76 |
children | c6f39553b702 |
comparison
equal
deleted
inserted
replaced
1160:7d28dcbff23e | 1161:f528e55fb32f |
---|---|
2583 global.params.linkswitches->push(arg); | 2583 global.params.linkswitches->push(arg); |
2584 } | 2584 } |
2585 | 2585 |
2586 void backend_init() | 2586 void backend_init() |
2587 { | 2587 { |
2588 // now lazily loaded | 2588 // LLVM_D_InitRuntime is done in Module::genLLVMModule |
2589 //LLVM_D_InitRuntime(); | 2589 // since it requires the semantic pass to be done |
2590 } | 2590 } |
2591 | 2591 |
2592 void backend_term() | 2592 void backend_term() |
2593 { | 2593 { |
2594 LLVM_D_FreeRuntime(); | 2594 LLVM_D_FreeRuntime(); |