From 6864bf0068e3ae5026579d5e632f69a7d11e7db1 Mon Sep 17 00:00:00 2001
From: Ryan Stecker <voidedweasel@gmail.com>
Date: Sat, 5 Jul 2014 10:57:08 -0500
Subject: [PATCH] Only spew JIT compilation and opcodes when built with
 JIT_SPEW defined.

---
 sourcepawn/jit/x86/jit_x86.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/sourcepawn/jit/x86/jit_x86.cpp b/sourcepawn/jit/x86/jit_x86.cpp
index fafc30cc..a0930ba9 100644
--- a/sourcepawn/jit/x86/jit_x86.cpp
+++ b/sourcepawn/jit/x86/jit_x86.cpp
@@ -287,7 +287,7 @@ CompileFromThunk(BaseRuntime *runtime, cell_t pcode_offs, void **addrp, char *pc
       return err;
   }
 
-#if !defined NDEBUG
+#if defined JIT_SPEW
   g_engine1.GetDebugHook()->OnDebugSpew(
       "Patching thunk to %s::%s\n",
       runtime->plugin()->name,
@@ -327,14 +327,12 @@ Compiler::emit(int *errp)
     return NULL;
   }
 
-#if !defined NDEBUG
+#if defined JIT_SPEW
   g_engine1.GetDebugHook()->OnDebugSpew(
       "Compiling function %s::%s\n",
       plugin_->name,
       GetFunctionName(plugin_, pcode_start_));
 
-#endif
-#if defined DEBUG
   SpewOpcode(plugin_, code_start_, cip_);
 #endif
 
@@ -352,7 +350,7 @@ Compiler::emit(int *errp)
     if (*cip_ == OP_PROC || *cip_ == OP_ENDPROC)
       break;
 
-#if defined DEBUG
+#if defined JIT_SPEW
     SpewOpcode(plugin_, code_start_, cip_);
 #endif