diff options
Diffstat (limited to 'src/jit/compiler.h')
-rw-r--r-- | src/jit/compiler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jit/compiler.h b/src/jit/compiler.h index 5b04b687dd..69a7cc9ca7 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -8279,6 +8279,16 @@ public: return compMinOptsIsSet; } #endif // !DEBUG + + inline bool OptimizationDisabled() + { + return MinOpts() || compDbgCode; + } + inline bool OptimizationEnabled() + { + return !OptimizationDisabled(); + } + inline void SetMinOpts(bool val) { assert(!compMinOptsIsUsed); |