mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
[tests] Avoid deprecated except syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41418d17cc
commit
4229b95d66
@ -1,3 +1,5 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
## Autogenerated by LLVM/Clang configuration.
|
## Autogenerated by LLVM/Clang configuration.
|
||||||
# Do not edit!
|
# Do not edit!
|
||||||
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
|
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
|
||||||
@ -13,7 +15,8 @@ config.shlibpath_var = "@SHLIBPATH_VAR@"
|
|||||||
try:
|
try:
|
||||||
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
|
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
|
||||||
config.llvm_build_mode = config.llvm_build_mode % lit.params
|
config.llvm_build_mode = config.llvm_build_mode % lit.params
|
||||||
except KeyError,e:
|
except KeyError:
|
||||||
|
e = sys.exc_info()[1]
|
||||||
key, = e.args
|
key, = e.args
|
||||||
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
## Autogenerated by LLVM/Clang configuration.
|
## Autogenerated by LLVM/Clang configuration.
|
||||||
# Do not edit!
|
# Do not edit!
|
||||||
config.host_triple = "@LLVM_HOST_TRIPLE@"
|
config.host_triple = "@LLVM_HOST_TRIPLE@"
|
||||||
@ -25,7 +27,8 @@ config.have_zlib = "@HAVE_LIBZ@"
|
|||||||
# used when we can't determine the tool dir at configuration time.
|
# used when we can't determine the tool dir at configuration time.
|
||||||
try:
|
try:
|
||||||
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
|
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
|
||||||
except KeyError,e:
|
except KeyError:
|
||||||
|
e = sys.exc_info()[1]
|
||||||
key, = e.args
|
key, = e.args
|
||||||
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user