diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-10-17 07:11:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-17 07:11:43 +0300 |
commit | 5473bcafeb4c94585282fbebe2dd6c357b3af200 (patch) | |
tree | eb680777dc586ac3a9706b074900c814b6856a8b /src/ILCompiler.WebAssembly | |
parent | b600ecbdd40429d481848b18adf83420d11d4323 (diff) |
Fix too verbose logging in CppCodeGen (#4738)
Diffstat (limited to 'src/ILCompiler.WebAssembly')
-rw-r--r-- | src/ILCompiler.WebAssembly/src/CodeGen/ILToWebAssemblyImporter_Statics.cs | 7 |
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(); |