mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
Merge of 2.065.0-b3.
The new visitor class is used for IR generation. This removes some modifications from DMD source.
This commit is contained in:
parent
27c0785ec4
commit
fe39da53e3
121 changed files with 14041 additions and 13679 deletions
|
@ -572,7 +572,7 @@ llvm::Module* Module::genLLVMModule(llvm::LLVMContext& context)
|
|||
for (unsigned k=0; k < members->dim; k++) {
|
||||
Dsymbol* dsym = static_cast<Dsymbol*>(members->data[k]);
|
||||
assert(dsym);
|
||||
dsym->codegen(&ir);
|
||||
Declaration_codegen(dsym);
|
||||
}
|
||||
|
||||
// for singleobj-compilation, fully emit all seen template instances
|
||||
|
@ -582,7 +582,7 @@ llvm::Module* Module::genLLVMModule(llvm::LLVMContext& context)
|
|||
{
|
||||
IRState::TemplateInstanceSet::iterator it, end = ir.seenTemplateInstances.end();
|
||||
for (it = ir.seenTemplateInstances.begin(); it != end; ++it)
|
||||
(*it)->codegen(&ir);
|
||||
Declaration_codegen(*it);
|
||||
ir.seenTemplateInstances.clear();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue