Imported Upstream version 3.8.0

Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
This commit is contained in:
Jo Shields
2014-09-04 09:07:35 +01:00
parent a575963da9
commit fe777c5c82
1062 changed files with 12460 additions and 5983 deletions

View File

@@ -290,12 +290,28 @@ namespace Mono.Linker.Steps {
if (CheckProcessed (assembly))
return;
ProcessModule (assembly);
MarkCustomAttributes (assembly);
foreach (ModuleDefinition module in assembly.Modules)
MarkCustomAttributes (module);
}
void ProcessModule (AssemblyDefinition assembly)
{
// Pre-mark <Module> if there is any methods as they need to be executed
// at assembly load time
foreach (TypeDefinition type in assembly.MainModule.Types)
{
if (type.Name == "<Module>" && type.HasMethods)
{
MarkType (type);
break;
}
}
}
protected void MarkField (FieldReference reference)
{
// if (IgnoreScope (reference.DeclaringType.Scope))

View File

@@ -217,6 +217,14 @@ namespace Mono.Linker {
case "mscorlib":
case "Accessibility":
case "Mono.Security":
// WPF
case "PresentationFramework":
case "PresentationCore":
case "WindowsBase":
case "UIAutomationProvider":
case "UIAutomationTypes":
case "PresentationUI":
case "ReachFramework":
return true;
default:
return name.Name.StartsWith ("System")