Ejemplo n.º 1
0
        /// <summary>
        /// Loads processor-specific settings for a particular
        /// platform.
        /// </summary>
        private IPlatformArchitectureElement LoadPlatformArchitecture(PlatformArchitecture_v1 spa)
        {
            var sTrashedRegs = spa.TrashedRegisters ?? "";

            return(new PlatformArchitectureElement
            {
                Name = spa.Name,
                TrashedRegisters = sTrashedRegs
                                   .Split(',')
                                   .Select(s => s.Trim())
                                   .ToList()
            });
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Loads processor-specific settings for a particular 
 /// platform.
 /// </summary>
 private PlatformArchitectureDefinition LoadPlatformArchitecture(PlatformArchitecture_v1 spa)
 {
     var sTrashedRegs = spa.TrashedRegisters ?? "";
     var sLibraries = spa.TypeLibraries ?? new TypeLibraryReference_v1[0];
     return new PlatformArchitectureDefinition
     {
         Name = spa.Name,
         TrashedRegisters = sTrashedRegs
             .Split(',')
             .Select(s => s.Trim())
             .ToList(),
         TypeLibraries = LoadCollection(sLibraries, LoadTypeLibraryReference)
     };
 }