diff options
Diffstat (limited to 'linker')
-rw-r--r-- | linker/Mono.Linker.Steps/MarkStep.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/linker/Mono.Linker.Steps/MarkStep.cs b/linker/Mono.Linker.Steps/MarkStep.cs index 224f0f035..29bd85812 100644 --- a/linker/Mono.Linker.Steps/MarkStep.cs +++ b/linker/Mono.Linker.Steps/MarkStep.cs @@ -275,7 +275,7 @@ namespace Mono.Linker.Steps { protected virtual void MarkCustomAttribute (CustomAttribute ca) { - Annotations.Push (ca); + Annotations.Push ((object)ca.AttributeType ?? (object)ca); try { MarkMethod (ca.Constructor); @@ -986,11 +986,8 @@ namespace Mono.Linker.Steps { protected void MarkMethodsIf (Collection<MethodDefinition> methods, Func<MethodDefinition, bool> predicate) { foreach (MethodDefinition method in methods) - if (predicate (method)) { - Annotations.Push (predicate); + if (predicate (method)) MarkMethod (method); - Annotations.Pop (); - } } static bool IsDefaultConstructor (MethodDefinition method) |