if Name not in NameList:\r
NameList.append(Name)\r
ProtocolDict[Arch, Name] = Guid\r
- # use sdict to keep the order\r
- self._Protocols = sdict()\r
- self._PrivateProtocols = sdict()\r
+ # use OrderedDict to keep the order\r
+ self._Protocols = OrderedDict()\r
+ self._PrivateProtocols = OrderedDict()\r
for Name in NameList:\r
#\r
# limit the ARCH to self._Arch, if no self._Arch found, tdict\r
if Name not in NameList:\r
NameList.append(Name)\r
PpiDict[Arch, Name] = Guid\r
- # use sdict to keep the order\r
- self._Ppis = sdict()\r
- self._PrivatePpis = sdict()\r
+ # use OrderedDict to keep the order\r
+ self._Ppis = OrderedDict()\r
+ self._PrivatePpis = OrderedDict()\r
for Name in NameList:\r
#\r
# limit the ARCH to self._Arch, if no self._Arch found, tdict\r
if Name not in NameList:\r
NameList.append(Name)\r
GuidDict[Arch, Name] = Guid\r
- # use sdict to keep the order\r
- self._Guids = sdict()\r
- self._PrivateGuids = sdict()\r
+ # use OrderedDict to keep the order\r
+ self._Guids = OrderedDict()\r
+ self._PrivateGuids = OrderedDict()\r
for Name in NameList:\r
#\r
# limit the ARCH to self._Arch, if no self._Arch found, tdict\r
EdkLogger.error('build', ErrorCode, ExtraData=ErrorInfo, File=self.MetaFile, Line=LineNo)\r
LibraryClassSet.add(LibraryClass)\r
LibraryClassDict[Arch, LibraryClass] = File\r
- self._LibraryClasses = sdict()\r
+ self._LibraryClasses = OrderedDict()\r
for LibraryClass in LibraryClassSet:\r
self._LibraryClasses[LibraryClass] = LibraryClassDict[self._Arch, LibraryClass]\r
return self._LibraryClasses\r
## Retrieve PCD declarations\r
def _GetPcds(self):\r
if self._Pcds is None:\r
- self._Pcds = sdict()\r
+ self._Pcds = OrderedDict()\r
self._Pcds.update(self._GetPcd(MODEL_PCD_FIXED_AT_BUILD))\r
self._Pcds.update(self._GetPcd(MODEL_PCD_PATCHABLE_IN_MODULE))\r
self._Pcds.update(self._GetPcd(MODEL_PCD_FEATURE_FLAG))\r
\r
## Retrieve PCD declarations for given type\r
def _GetPcd(self, Type):\r
- Pcds = sdict()\r
+ Pcds = OrderedDict()\r
#\r
# tdict is a special kind of dict, used for selecting correct\r
# PCD declaration for given ARCH\r