Mercurial > hg > CbC > CbC_llvm
diff examples/Kaleidoscope/MCJIT/cached/split-lib.py @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
line wrap: on
line diff
--- a/examples/Kaleidoscope/MCJIT/cached/split-lib.py Sun Dec 23 19:23:36 2018 +0900 +++ b/examples/Kaleidoscope/MCJIT/cached/split-lib.py Wed Aug 14 19:46:37 2019 +0900 @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + class TimingScriptGenerator: """Used to generate a bash script which will invoke the toy and time it""" def __init__(self, scriptname, outputname): @@ -47,7 +49,7 @@ infile = open(inputname, "r") libfile = open(libname, "w") callfile = open(callname, "w") - print "Splitting %s into %s and %s" % (inputname, callname, libname) + print("Splitting %s into %s and %s" % (inputname, callname, libname)) for line in infile: if not line.startswith("#"): if line.startswith("print"): @@ -67,4 +69,4 @@ for script in script_list: splitScript(script, libGenScript, timingScript) -print "All done!" +print("All done!")