mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20:40 +03:00
dmd2 --> ddmd. Merge (almost all of) our changes to dmd source into the new D source of dmd 2.069.2.
Also adds the CMake infrastructure to compile and link the D source files. The build is partially broken: - A few files in Phobos and druntime do not build - MSVC build is broken because of unresolved symbols involving reals
This commit is contained in:
parent
9ae8ce6165
commit
29ce4012af
234 changed files with 3188 additions and 131299 deletions
|
@ -435,16 +435,18 @@ llvm::BasicBlock *IrFunction::getOrCreateResumeUnwindBlock() {
|
|||
|
||||
IrFunction *getIrFunc(FuncDeclaration *decl, bool create) {
|
||||
if (!isIrFuncCreated(decl) && create) {
|
||||
assert(decl->ir.irFunc == NULL);
|
||||
decl->ir.irFunc = new IrFunction(decl);
|
||||
decl->ir.m_type = IrDsymbol::FuncType;
|
||||
assert(decl->ir->irFunc == NULL);
|
||||
decl->ir->irFunc = new IrFunction(decl);
|
||||
decl->ir->m_type = IrDsymbol::FuncType;
|
||||
}
|
||||
assert(decl->ir.irFunc != NULL);
|
||||
return decl->ir.irFunc;
|
||||
assert(decl->ir->irFunc != NULL);
|
||||
return decl->ir->irFunc;
|
||||
}
|
||||
|
||||
bool isIrFuncCreated(FuncDeclaration *decl) {
|
||||
int t = decl->ir.type();
|
||||
assert(decl);
|
||||
assert(decl->ir);
|
||||
IrDsymbol::Type t = decl->ir->type();
|
||||
assert(t == IrDsymbol::FuncType || t == IrDsymbol::NotSet);
|
||||
return t == IrDsymbol::FuncType;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue