opts::isRuntimeCompileEnabled() helper function

This commit is contained in:
Ivan 2017-09-06 21:20:49 +03:00
parent ac763b0520
commit ccc87bdb9d
5 changed files with 9 additions and 12 deletions

View file

@ -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;
}