@@ -112,7 +112,7 @@ def handleExecutable(inputFile, llvmLinker, outputFile=None):
112
112
def handleArchive (inputFile , llvmArchiver , outputFile = None ):
113
113
inputFile = os .path .abspath (inputFile )
114
114
originalDir = os .getcwd () # This will be the destination
115
-
115
+
116
116
# Make temporary directory to extract objects to
117
117
tempDir = ''
118
118
bitCodeFiles = [ ]
@@ -150,7 +150,7 @@ def handleArchive(inputFile, llvmArchiver, outputFile=None):
150
150
bitCodeFiles .append (bcFile )
151
151
else :
152
152
logging .warning ('Ignoring file "{0}" in archive' .format (f ))
153
-
153
+
154
154
logging .info ('Found the following bitcode file names to build bitcode archive:\n {0}' .format (
155
155
pprint .pformat (bitCodeFiles )))
156
156
@@ -219,14 +219,14 @@ def main(args):
219
219
220
220
parser = argparse .ArgumentParser (description = __doc__ )
221
221
parser .add_argument ("wllvm_binary" , help = "A binary produced by wllvm/wllvm++" )
222
- parser .add_argument ("--linker" ,"-l" ,
222
+ parser .add_argument ("--linker" ,"-l" ,
223
223
help = 'The LLVM bitcode linker to use. Default "%(default)s"' ,
224
224
default = llvmLinker )
225
- parser .add_argument ("--archiver" ,"-a" ,
225
+ parser .add_argument ("--archiver" ,"-a" ,
226
226
help = 'The LLVM bitcode archiver to use. Default "%(default)s"' ,
227
227
default = llvmArchiver )
228
- parser .add_argument ("--output" ,"-o" ,
229
- help = 'The output file. Defaults to a file in the same directory ' +
228
+ parser .add_argument ("--output" ,"-o" ,
229
+ help = 'The output file. Defaults to a file in the same directory ' +
230
230
'as the input with the same name as the input but with an ' +
231
231
'added file extension (.' + moduleExtension + ' for bitcode ' +
232
232
'modules and .' + bitCodeArchiveExtension + ' for bitcode archives)' ,
@@ -250,7 +250,7 @@ def main(args):
250
250
logging .error ('Output directory "{0}" does not exist.' .format (
251
251
os .path .dirname (outputFile )))
252
252
return 1
253
-
253
+
254
254
ft = FileType .getFileType (inputFile )
255
255
logging .debug ('Detected file type is {0}' .format (FileType .revMap [ft ]))
256
256
@@ -267,4 +267,3 @@ def main(args):
267
267
268
268
if __name__ == '__main__' :
269
269
sys .exit (main (sys .argv ))
270
-
0 commit comments