[pypy-commit] pypy llvm-translation-backend: Fix datalayout fishing.
Manuel Jacob
noreply at buildbot.pypy.org
Sat Jan 18 13:26:18 CET 2014
Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r68762:2870c4a2d133
Date: 2014-01-18 13:25 +0100
http://bitbucket.org/pypy/pypy/changeset/2870c4a2d133/
Log: Fix datalayout fishing.
diff --git a/rpython/translator/llvm/genllvm.py b/rpython/translator/llvm/genllvm.py
--- a/rpython/translator/llvm/genllvm.py
+++ b/rpython/translator/llvm/genllvm.py
@@ -1738,7 +1738,9 @@
output = cmdexec('clang -emit-llvm -S -x c {} -o -'
.format(devnull))
self._parse_datalayout(output)
- f.write(output)
+ for line in output.splitlines(True):
+ if line.startswith('target '):
+ f.write(line)
database = Database(self, f)
self._write_special_declarations(f)
More information about the pypy-commit
mailing list