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:
Kai Nacke 2014-02-08 14:48:42 +01:00
parent 27c0785ec4
commit fe39da53e3
121 changed files with 14041 additions and 13679 deletions

View file

@ -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();
}
}