D dynamic compilation support

This commit is contained in:
Ivan 2016-12-03 21:14:42 +03:00
parent 1c2271d00d
commit 42f283c221
41 changed files with 2058 additions and 9 deletions

View file

@ -74,7 +74,7 @@ llvm::StringRef IrFunction::getLLVMFuncName() const {
llvm::Function *IrFunction::getLLVMCallee() const {
assert(func != nullptr);
return func;
return rtCompileFunc != nullptr ? rtCompileFunc : func;
}
IrFunction *getIrFunc(FuncDeclaration *decl, bool create) {