diff ir/irmodule.cpp @ 1529:ad7f2f1862d6

Adjust LDC to work with the LLVMContext LLVM changes. This means we now require a fairly new LLVM revision. I use 75234.
author Christian Kamm <kamm incasoftware de>
date Fri, 10 Jul 2009 21:30:02 +0200
parents 1714836f2c0b
children
line wrap: on
line diff
--- a/ir/irmodule.cpp	Thu Jul 09 21:13:19 2009 +0100
+++ b/ir/irmodule.cpp	Fri Jul 10 21:30:02 2009 +0200
@@ -9,7 +9,7 @@
 
     LLConstant* slice = DtoConstString(srcfilename);
     fileName = new llvm::GlobalVariable(
-        slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename", gIR->module);
+        *gIR->module, slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename");
 }
 
 IrModule::~IrModule()