begin low-level runtime implementation

This commit is contained in:
Siu Kwan Lam 2013-08-13 18:38:41 -05:00
commit 07c64779d8
9 changed files with 301 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import sys
import re
buf = []
with open(sys.argv[1], 'r') as fin:
tripleline = re.compile('^target\s+triple\s+=\s+')
for line in fin.readlines():
if not tripleline.match(line):
buf.append(line)
with open(sys.argv[1], 'w') as fout:
for line in buf:
fout.write(line)