mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
opts::isRuntimeCompileEnabled() helper function
This commit is contained in:
parent
ac763b0520
commit
ccc87bdb9d
5 changed files with 9 additions and 12 deletions
|
@ -630,7 +630,7 @@ void declareRuntimeCompiledFunction(IRState *irs, IrFunction *func) {
|
|||
assert(nullptr != irs);
|
||||
assert(nullptr != func);
|
||||
assert(nullptr != func->getLLVMFunc());
|
||||
if (!opts::enableRuntimeCompile) {
|
||||
if (!opts::isRuntimeCompileEnabled()) {
|
||||
return;
|
||||
}
|
||||
auto srcFunc = func->getLLVMFunc();
|
||||
|
@ -647,7 +647,7 @@ void defineRuntimeCompiledFunction(IRState *irs, IrFunction *func)
|
|||
assert(nullptr != func);
|
||||
assert(nullptr != func->getLLVMFunc());
|
||||
assert(nullptr != func->rtCompileFunc);
|
||||
if (!opts::enableRuntimeCompile) {
|
||||
if (!opts::isRuntimeCompileEnabled()) {
|
||||
return;
|
||||
}
|
||||
auto srcFunc = func->getLLVMFunc();
|
||||
|
@ -670,7 +670,7 @@ void addRuntimeCompiledVar(IRState *irs, IrGlobal *var) {
|
|||
assert(nullptr != var);
|
||||
assert(nullptr != var->value);
|
||||
assert(nullptr != var->V);
|
||||
if (!opts::enableRuntimeCompile) {
|
||||
if (!opts::isRuntimeCompileEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue