Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1528:15f1707721fa | 1529:ad7f2f1862d6 |
---|---|
7 { | 7 { |
8 M = module; | 8 M = module; |
9 | 9 |
10 LLConstant* slice = DtoConstString(srcfilename); | 10 LLConstant* slice = DtoConstString(srcfilename); |
11 fileName = new llvm::GlobalVariable( | 11 fileName = new llvm::GlobalVariable( |
12 slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename", gIR->module); | 12 *gIR->module, slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename"); |
13 } | 13 } |
14 | 14 |
15 IrModule::~IrModule() | 15 IrModule::~IrModule() |
16 { | 16 { |
17 } | 17 } |