mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
@dynamicCompileEmit attribute (#2747)
This commit is contained in:
parent
00c3e89933
commit
cbeb2b45d6
9 changed files with 101 additions and 28 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue