Fix a build break due to PR #5101
authorCarol Eidt <carol.eidt@microsoft.com>
Sat, 28 May 2016 01:20:11 +0000 (18:20 -0700)
committerCarol Eidt <carol.eidt@microsoft.com>
Sat, 28 May 2016 01:20:11 +0000 (18:20 -0700)
The declaration, definition and uses of eeGetMethodFullName
didn't match.

src/jit/compiler.cpp
src/jit/eeinterface.cpp

index fc34013..ac886ff 100644 (file)
@@ -3926,7 +3926,7 @@ void                 Compiler::compCompile(void * * methodCodePtr,
         assert(!compIsForInlining());
 #ifdef DEBUG // We only have access to info.compFullName in DEBUG builds.
         fprintf(compJitFuncInfoFile, "%s\n", info.compFullName);
-#else
+#elif FEATURE_SIMD
         fprintf(compJitFuncInfoFile, " %s\n", eeGetMethodFullName(info.compMethodHnd));
 #endif
         fprintf(compJitFuncInfoFile, "");         // in our logic this causes a flush
index 372e624..e383862 100644 (file)
@@ -20,6 +20,8 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 #pragma hdrstop
 #endif
 
+#if defined(DEBUG) || defined(FEATURE_JIT_METHOD_PERF) || defined(FEATURE_SIMD)
+
 #pragma warning(push)
 #pragma warning(disable:4701) // difficult to get rid of C4701 with 'sig' below
 
@@ -197,4 +199,6 @@ const char* Compiler::eeGetMethodFullName (CORINFO_METHOD_HANDLE  hnd)
 
 #pragma warning(pop)
 
+#endif // defined(DEBUG) || defined(FEATURE_JIT_METHOD_PERF) || defined(FEATURE_SIMD)
+
 /*****************************************************************************/