begin low-level runtime implementation
This commit is contained in:
parent
d10b182479
commit
07c64779d8
9 changed files with 301 additions and 0 deletions
15
llrtc/tools/striptriple.py
Normal file
15
llrtc/tools/striptriple.py
Normal 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)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue