BaseTools: change another list to set
potentially accelerate "in" testing which is the use for this variable Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
339fe8dd6a
commit
29189291e5
@@ -3778,7 +3778,7 @@ class ModuleAutoGen(AutoGen):
|
|||||||
if not self.SourceFileList:
|
if not self.SourceFileList:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
NameGuids = []
|
NameGuids = set()
|
||||||
for SrcFile in self.SourceFileList:
|
for SrcFile in self.SourceFileList:
|
||||||
if SrcFile.Ext.lower() != '.vfr':
|
if SrcFile.Ext.lower() != '.vfr':
|
||||||
continue
|
continue
|
||||||
@@ -3810,7 +3810,7 @@ class ModuleAutoGen(AutoGen):
|
|||||||
if not Guid:
|
if not Guid:
|
||||||
break
|
break
|
||||||
NameArray = ConvertStringToByteArray('L"' + Name.group(1) + '"')
|
NameArray = ConvertStringToByteArray('L"' + Name.group(1) + '"')
|
||||||
NameGuids.append((NameArray, GuidStructureStringToGuidString(Guid.group(1))))
|
NameGuids.add((NameArray, GuidStructureStringToGuidString(Guid.group(1))))
|
||||||
Pos = Content.find('efivarstore', Name.end())
|
Pos = Content.find('efivarstore', Name.end())
|
||||||
if not NameGuids:
|
if not NameGuids:
|
||||||
return []
|
return []
|
||||||
|
Reference in New Issue
Block a user