aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-13 14:08:44 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-13 14:08:44 -0800
commit0dcba8bc4ec746505cf05c37a253273fb0bcfe06 (patch)
treeee83763277612fcc2a53f3e3a7ceb466af4bf7bb /tools/shared.py
parent9071942043abc0000a3fa1a68f34887657275a2c (diff)
finish llvm opts in emcc, plus more tests
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py5
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