diff options
author | Jb Evain <jb@evain.net> | 2017-02-14 21:31:03 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2017-02-14 21:31:09 +0300 |
commit | d811fc410eb27a9aeed62043a0efda33abf96fa5 (patch) | |
tree | fac3c0e45d544ad048b0e0c10598a414a61d2425 | |
parent | 81419ddd0ab988e922fc036e1a7a1f0dc4d4118b (diff) |
Do not read symbols for newly added methods when writing
-rw-r--r-- | Mono.Cecil/AssemblyReader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mono.Cecil/AssemblyReader.cs b/Mono.Cecil/AssemblyReader.cs index 5482153..c4db41f 100644 --- a/Mono.Cecil/AssemblyReader.cs +++ b/Mono.Cecil/AssemblyReader.cs @@ -418,7 +418,7 @@ namespace Mono.Cecil { for (int i = 0; i < methods.Count; i++) { var method = methods [i]; - if (method.HasBody && method.debug_info == null) + if (method.HasBody && method.token.RID != 0 && method.debug_info == null) method.debug_info = symbol_reader.Read (method); } } |