@@ -39,6 +39,13 @@ Infixes = {
39
39
"q_" : "Generic Function"
40
40
}
41
41
42
+ SHORTCUTS = {
43
+ "O" : "bin/PerfTests_O" ,
44
+ "Ounchecked" : "bin/PerfTests_Ounchecked" ,
45
+ "Onone" : "bin/PerfTests_Onone" ,
46
+ "dylib" : "lib/swift/macosx/x86_64/libswiftCore.dylib" ,
47
+ }
48
+
42
49
GenericFunctionPrefix = "__TTSg"
43
50
44
51
SortedPrefixes = sorted (Prefixes )
@@ -371,19 +378,14 @@ How to specify files:
371
378
'$SWIFT_NEW_BUILDDIR environment variables set.\n ' + \
372
379
'$SWIFT_OLD_BUILDDIR = {0}\n $SWIFT_NEW_BUILDDIR = {1}' .format (
373
380
oldBuildDir , newBuildDir )
374
- oldFileArgs = [ "O" , "Ounchecked" , "Onone" , "dylib" ]
381
+ oldFileArgs = SHORTCUTS .keys ()
382
+
375
383
oldFiles = []
376
384
newFiles = []
377
385
numExpanded = 0
378
386
for file in oldFileArgs :
379
- shortcuts = {
380
- "O" : "bin/PerfTests_O" ,
381
- "Ounchecked" : "bin/PerfTests_Ounchecked" ,
382
- "Onone" : "bin/PerfTests_Onone" ,
383
- "dylib" : "lib/swift/macosx/x86_64/libswiftCore.dylib"
384
- }
385
- if file in shortcuts :
386
- file = shortcuts [file ]
387
+ if file in SHORTCUTS :
388
+ file = SHORTCUTS [file ]
387
389
388
390
if not file .startswith ("./" ) and oldBuildDir and newBuildDir :
389
391
oldExpanded = glob .glob (oldBuildDir + "/" + file )
0 commit comments