Skip to content

Commit

Permalink
[linker] Update linker to recognize debug async notification methods.…
Browse files Browse the repository at this point in the history
… Fixes #55037 (#2004)
  • Loading branch information
marek-safar authored and spouliot committed Apr 13, 2017
1 parent d3d7e67 commit ae5e483
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/linker/MobileMarkStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit ae5e483

Please sign in to comment.