comparison gen/runtime.cpp @ 1535:61f12f4651b5

Don't use llvm::getGlobalContext() anymore
author Benjamin Kramer <benny.kra@gmail.com>
date Mon, 13 Jul 2009 20:16:15 +0200
parents 8ca25bd765a3
children 259b031f3d22
comparison
equal deleted inserted replaced
1534:8ca25bd765a3 1535:61f12f4651b5
148 } 148 }
149 149
150 static void LLVM_D_BuildRuntimeModule() 150 static void LLVM_D_BuildRuntimeModule()
151 { 151 {
152 Logger::println("building module"); 152 Logger::println("building module");
153 M = new llvm::Module("ldc internal runtime", llvm::getGlobalContext()); 153 M = new llvm::Module("ldc internal runtime", gIR->context());
154 154
155 Logger::println("building basic types"); 155 Logger::println("building basic types");
156 const LLType* voidTy = LLType::VoidTy; 156 const LLType* voidTy = LLType::VoidTy;
157 const LLType* boolTy = LLType::Int1Ty; 157 const LLType* boolTy = LLType::Int1Ty;
158 const LLType* byteTy = LLType::Int8Ty; 158 const LLType* byteTy = LLType::Int8Ty;