diff options
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/shared.py b/tools/shared.py index 8cf6e1fd..e703634a 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -319,10 +319,7 @@ class Building: @staticmethod def llvm_dis(filename): # LLVM binary ==> LLVM assembly - try: - os.remove(filename + '.o.ll') - except: - pass + try_delete(filename + '.o.ll') output = Popen([LLVM_DIS, filename + '.o'] + LLVM_DIS_OPTS + ['-o=' + filename + '.o.ll'], stdout=PIPE).communicate()[0] assert os.path.exists(filename + '.o.ll'), 'Could not create .ll file: ' + output |