diff --git a/tools/linker/MobileMarkStep.cs b/tools/linker/MobileMarkStep.cs index 1e41495f0f14..f7b2dbe02b27 100644 --- a/tools/linker/MobileMarkStep.cs +++ b/tools/linker/MobileMarkStep.cs @@ -259,6 +259,19 @@ void MarkMetadata (IMetadataTokenProvider tp) void ProcessCorlib (TypeDefinition type) { switch (type.Namespace) { + case "System.Runtime.CompilerServices.AsyncTaskMethodBuilder": + if (DebugBuild) + MarkNamedMethod (type, "SetNotificationForWaitCompletion"); + break; + case "System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1": + if (DebugBuild) + MarkNamedMethod (type, "SetNotificationForWaitCompletion"); + break; + case "System.Threading.Tasks.Task": + if (DebugBuild) + MarkNamedMethod (type, "NotifyDebuggerOfWaitCompletion"); + break; + case "System.Security.Cryptography": switch (type.Name) { case "Aes":