forked from OSchip/llvm-project
parent
b213a345e1
commit
4d6b33c510
|
@ -29,12 +29,12 @@ import shutil
|
||||||
tmpdir = ""
|
tmpdir = ""
|
||||||
|
|
||||||
def cleanup(d):
|
def cleanup(d):
|
||||||
print("removing: ", d)
|
print("removing: %s" % d)
|
||||||
shutil.rmtree(d)
|
shutil.rmtree(d)
|
||||||
|
|
||||||
def collect_dataflow_for_corpus(self, exe, corpus_dir, output_dir):
|
def collect_dataflow_for_corpus(self, exe, corpus_dir, output_dir):
|
||||||
print "Collecting dataflow for corpus:", corpus_dir, \
|
print("Collecting dataflow for corpus: %s output_dir: %s" % (corpus_dir,
|
||||||
"output_dir:", output_dir
|
output_dir))
|
||||||
assert not os.path.exists(output_dir)
|
assert not os.path.exists(output_dir)
|
||||||
os.mkdir(output_dir)
|
os.mkdir(output_dir)
|
||||||
for root, dirs, files in os.walk(corpus_dir):
|
for root, dirs, files in os.walk(corpus_dir):
|
||||||
|
|
|
@ -30,7 +30,7 @@ def main(argv):
|
||||||
else:
|
else:
|
||||||
D[F] = BV;
|
D[F] = BV;
|
||||||
for F in D.keys():
|
for F in D.keys():
|
||||||
print F, D[F]
|
print("%s %s" % (F, D[F]))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv)
|
main(sys.argv)
|
||||||
|
|
Loading…
Reference in New Issue