diff 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
line wrap: on
line diff
--- a/gen/runtime.cpp	Mon Jul 13 12:17:58 2009 +0200
+++ b/gen/runtime.cpp	Mon Jul 13 20:16:15 2009 +0200
@@ -150,7 +150,7 @@
 static void LLVM_D_BuildRuntimeModule()
 {
     Logger::println("building module");
-    M = new llvm::Module("ldc internal runtime", llvm::getGlobalContext());
+    M = new llvm::Module("ldc internal runtime", gIR->context());
 
     Logger::println("building basic types");
     const LLType* voidTy = LLType::VoidTy;