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

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jb@evain.net>2017-02-14 21:31:03 +0300
committerJb Evain <jb@evain.net>2017-02-14 21:31:09 +0300
commitd811fc410eb27a9aeed62043a0efda33abf96fa5 (patch)
treefac3c0e45d544ad048b0e0c10598a414a61d2425
parent81419ddd0ab988e922fc036e1a7a1f0dc4d4118b (diff)
Do not read symbols for newly added methods when writing
-rw-r--r--Mono.Cecil/AssemblyReader.cs2
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);
}
}