Use logf() instead of JitDump() (#13265)
authorBruce Forstall <brucefo@microsoft.com>
Tue, 8 Aug 2017 17:52:57 +0000 (10:52 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2017 17:52:57 +0000 (10:52 -0700)
* Use logf() instead of JitDump()

This allows more JitDump output to get routed through the CLR
logging facility.

* Formatting

src/jit/compiler.cpp
src/jit/jit.h
src/jit/ssaconfig.h

index 06f31a4..18794c0 100644 (file)
@@ -3661,14 +3661,6 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
 
 #ifdef DEBUG
 
-void JitDump(const char* pcFormat, ...)
-{
-    va_list lst;
-    va_start(lst, pcFormat);
-    vflogf(jitstdout, pcFormat, lst);
-    va_end(lst);
-}
-
 bool Compiler::compJitHaltMethod()
 {
     /* This method returns true when we use an INS_BREAKPOINT to allow us to step into the generated native code */
index d489247..40533c0 100644 (file)
@@ -514,11 +514,10 @@ const bool dspGCtbls = true;
 #endif // !DEBUG
 
 #ifdef DEBUG
-void JitDump(const char* pcFormat, ...);
 #define JITDUMP(...)                                                                                                   \
     {                                                                                                                  \
         if (JitTls::GetCompiler()->verbose)                                                                            \
-            JitDump(__VA_ARGS__);                                                                                      \
+            logf(__VA_ARGS__);                                                                                         \
     }
 #define JITLOG(x)                                                                                                      \
     {                                                                                                                  \
index 6e81ad9..8df61a2 100644 (file)
@@ -24,7 +24,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 #ifdef DEBUG
 #define DBG_SSA_JITDUMP(...)                                                                                           \
     if (JitTls::GetCompiler()->verboseSsa)                                                                             \
-    JitDump(__VA_ARGS__)
+    logf(__VA_ARGS__)
 #else
 #define DBG_SSA_JITDUMP(...)
 #endif