Skip to content

Commit 311ee2b

Browse files
committed
Made extract-bc a bit more chatty.
1 parent a7f81ad commit 311ee2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extract-bc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ def handleExecutable(inputFile, llvmLinker, outputFile=None):
102102
outputFile = inputFile + '.' + moduleExtension
103103

104104
logging.debug('Found the following file names from ELF header:\n' + pprint.pformat(fileNames))
105-
linkCmd = [ llvmLinker, '-o', outputFile ]
105+
#iam: TODO: toggle the -v with a cmd line switch
106+
linkCmd = [ llvmLinker, '-v', '-o', outputFile ]
106107
linkCmd.extend([x for x in fileNames if x != ''])
107108
logging.info('Writing output to {0}'.format(outputFile))
108109
linkProc = Popen(linkCmd)
109110
exitCode = linkProc.wait()
111+
logging.info('{0} returned {1}'.format(llvmLinker, str(exitCode)))
110112
return exitCode
111113

112114
def handleArchive(inputFile, llvmArchiver, outputFile=None):

0 commit comments

Comments
 (0)