Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-10-17 07:11:43 +0300
committerGitHub <noreply@github.com>2017-10-17 07:11:43 +0300
commit5473bcafeb4c94585282fbebe2dd6c357b3af200 (patch)
treeeb680777dc586ac3a9706b074900c814b6856a8b /src/ILCompiler.WebAssembly
parentb600ecbdd40429d481848b18adf83420d11d4323 (diff)
Fix too verbose logging in CppCodeGen (#4738)
Diffstat (limited to 'src/ILCompiler.WebAssembly')
-rw-r--r--src/ILCompiler.WebAssembly/src/CodeGen/ILToWebAssemblyImporter_Statics.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ILCompiler.WebAssembly/src/CodeGen/ILToWebAssemblyImporter_Statics.cs b/src/ILCompiler.WebAssembly/src/CodeGen/ILToWebAssemblyImporter_Statics.cs
index 32961282e..5f75f89c4 100644
--- a/src/ILCompiler.WebAssembly/src/CodeGen/ILToWebAssemblyImporter_Statics.cs
+++ b/src/ILCompiler.WebAssembly/src/CodeGen/ILToWebAssemblyImporter_Statics.cs
@@ -23,7 +23,12 @@ namespace Internal.IL
{
MethodDesc method = methodCodeNodeNeedingCode.Method;
- compilation.Logger.Writer.WriteLine("Compiling " + method.ToString());
+ if (compilation.Logger.IsVerbose)
+ {
+ string methodName = method.ToString();
+ compilation.Logger.Writer.WriteLine("Compiling " + methodName);
+ }
+
if (method.HasCustomAttribute("System.Runtime", "RuntimeImportAttribute"))
{
throw new NotImplementedException();