Mercurial > projects > ldc
diff gen/declarations.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 | 855f188aab7a |
children |
line wrap: on
line diff
--- a/gen/declarations.cpp Thu Jul 09 21:13:19 2009 +0100 +++ b/gen/declarations.cpp Fri Jul 10 21:30:02 2009 +0200 @@ -133,7 +133,7 @@ llvm::GlobalValue::LinkageTypes _linkage = DtoLinkage(this); std::string _name(mangle()); - llvm::GlobalVariable* gvar = new llvm::GlobalVariable(_type,_isconst,_linkage,NULL,_name,gIR->module); + llvm::GlobalVariable* gvar = new llvm::GlobalVariable(*gIR->module,_type,_isconst,_linkage,NULL,_name); this->ir.irGlobal->value = gvar; // set the alignment