X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=f771c23b12628cd1383417eeb97ff4064375d066;hb=875710a2fd6b3c4f814961582594bd5c1cdb493a;hp=b5a982c02d5b234c9764bac540534753d6e40d87;hpb=7ad7c75048eb32f95eae04847908793e0183802f;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index b5a982c02d5..f771c23b126 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -150,16 +150,15 @@ if config.test_exec_root is None: ### -# Provide a command line for mcjit tests -lli_mcjit = 'lli -use-mcjit' +lli = 'lli' # The target triple used by default by lli is the process target triple (some # triple appropriate for generating code for the current process) but because # we don't support COFF in MCJIT well enough for the tests, force ELF format on # Windows. FIXME: the process target triple should be used here, but this is # difficult to obtain on Windows. if re.search(r'cygwin|mingw32|win32', config.host_triple): - lli_mcjit += ' -mtriple='+config.host_triple+'-elf' -config.substitutions.append( ('%lli_mcjit', lli_mcjit) ) + lli += ' -mtriple='+config.host_triple+'-elf' +config.substitutions.append( ('%lli', lli ) ) # Similarly, have a macro to use llc with DWARF even when the host is win32. llc_dwarf = 'llc' @@ -167,22 +166,6 @@ if re.search(r'win32', config.target_triple): llc_dwarf += ' -mtriple='+config.target_triple.replace('-win32', '-mingw32') config.substitutions.append( ('%llc_dwarf', llc_dwarf) ) -# Process jit implementation option -jit_impl_cfg = lit_config.params.get('jit_impl', None) -if jit_impl_cfg == 'mcjit': - # When running with mcjit, mangle -mcjit into target triple - # and add -use-mcjit flag to lli invocation - if 'i386' in config.target_triple or 'i686' in config.target_triple: - config.target_triple += jit_impl_cfg + '-ia32' - elif 'x86_64' in config.target_triple: - config.target_triple += jit_impl_cfg + '-ia64' - else: - config.target_triple += jit_impl_cfg - - config.substitutions.append( ('%lli', 'lli -use-mcjit') ) -else: - config.substitutions.append( ('%lli', 'lli') ) - # Add site-specific substitutions. config.substitutions.append( ('%ocamlopt', config.ocamlopt_executable) ) config.substitutions.append( ('%llvmshlibdir', config.llvm_shlib_dir) )