Skip to content

Commit bf0dce8

Browse files
committed
bit rot in as.py.
1 parent 97b7725 commit bf0dce8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

wllvm/as.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ def main():
6666

6767
# Now compile this llvm assembly file into a bitcode file. The output
6868
# filename is the same as the object with a .bc appended
69-
try:
70-
(dirs, filename) = os.path.split(argFilter.outFileName)
71-
except AttributeError as e:
72-
logging.error('Output file argument not found.\nException message: ' + str(e))
69+
if not argFilter.outFileName:
70+
logging.error('Output file argument not found.')
7371
sys.exit(1)
74-
72+
7573
fakeAssembler = [llvmAssembler, infile, '-o', argFilter.outFileName]
7674

7775
asmProc = Popen(fakeAssembler)

0 commit comments

Comments
 (0)