@dynamicCompileEmit attribute (#2747)

This commit is contained in:
Ivan Butygin 2018-06-26 21:59:02 +03:00 committed by GitHub
parent 00c3e89933
commit cbeb2b45d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 101 additions and 28 deletions

View file

@ -584,7 +584,7 @@ void DtoDeclareFunction(FuncDeclaration *fdecl) {
applyTargetMachineAttributes(*func, *gTargetMachine);
applyFuncDeclUDAs(fdecl, irFunc);
if(irFunc->dynamicCompile) {
if(irFunc->isDynamicCompiled()) {
declareDynamicCompiledFunction(gIR, irFunc);
}
@ -976,7 +976,7 @@ void DtoDefineFunction(FuncDeclaration *fd, bool linkageAvailableExternally) {
}
SCOPE_EXIT {
if (irFunc->dynamicCompile) {
if (irFunc->isDynamicCompiled()) {
defineDynamicCompiledFunction(gIR, irFunc);
}
};