Mercurial > projects > ldc
comparison gen/runtime.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 | a8cb25d478c4 |
children | 6bd5ce91b136 |
comparison
equal
deleted
inserted
replaced
1160:7d28dcbff23e | 1161:f528e55fb32f |
---|---|
34 bool LLVM_D_InitRuntime() | 34 bool LLVM_D_InitRuntime() |
35 { | 35 { |
36 Logger::println("*** Initializing D runtime declarations ***"); | 36 Logger::println("*** Initializing D runtime declarations ***"); |
37 LOG_SCOPE; | 37 LOG_SCOPE; |
38 | 38 |
39 LLVM_D_BuildRuntimeModule(); | 39 if (!M) |
40 LLVM_D_BuildRuntimeModule(); | |
41 | |
40 return true; | 42 return true; |
41 } | 43 } |
42 | 44 |
43 void LLVM_D_FreeRuntime() | 45 void LLVM_D_FreeRuntime() |
44 { | 46 { |