diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-11 13:27:28 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-11 13:27:28 +0000 |
commit | 4c28d2024faedfc9b622b474746872c6362f139f (patch) | |
tree | af666ee304c62a610b6a4fd9702dcfd0180aa6ee /utils/llvmdo | |
parent | 08be87bdfa834371299c590f6042671df3abfd8a (diff) | |
download | llvm-4c28d2024faedfc9b622b474746872c6362f139f.tar.gz llvm-4c28d2024faedfc9b622b474746872c6362f139f.tar.bz2 llvm-4c28d2024faedfc9b622b474746872c6362f139f.tar.xz |
lit: execfile() isn't present in Python 3.3
On the other hand, exec(compile()) doesn't work in older Python versions in the
2.x series.
This commit introduces exec(compile()) with a fallback to plain exec(). That'll
hopefully hit the sweet spot in terms of version support.
Followup to r198766 which added enhanced source locations for lit cfg parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvmdo')
0 files changed, 0 insertions, 0 deletions