aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-25 21:19:52 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-25 21:19:52 +0000
commit48f296dada9a344f278bf3a4b3f5bfb97b0935c2 (patch)
tree9d73e9cc530f9226ecf673e3612053e20c0ae41a /test/lib
parent8ed692654bb35f081e8984ec84512a49b3277d33 (diff)
downloadexternal_llvm-48f296dada9a344f278bf3a4b3f5bfb97b0935c2.zip
external_llvm-48f296dada9a344f278bf3a4b3f5bfb97b0935c2.tar.gz
external_llvm-48f296dada9a344f278bf3a4b3f5bfb97b0935c2.tar.bz2
Use LLVMCC_EMITIR_FLAG rather than hard-coding "-emit-llvm".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/llvm.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index 19a2729..d92503a 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -47,7 +47,7 @@ proc execOneLine { test PRS outcome lineno line } {
# cases.
proc substitute { line test tmpFile } {
global srcroot objroot srcdir objdir subdir target_triplet
- global llvmgcc llvmgxx ocamlopt
+ global llvmgcc llvmgxx emitir ocamlopt
global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
global llvmdsymutil valgrind grep gas bugpoint_topts
set path [file join $srcdir $subdir]
@@ -60,9 +60,9 @@ proc substitute { line test tmpFile } {
#replace %llvmgcc_only with actual path to llvmgcc
regsub -all {%llvmgcc_only} $new_line "$llvmgcc" new_line
#replace %llvmgcc with actual path to llvmgcc
- regsub -all {%llvmgcc} $new_line "$llvmgcc -emit-llvm -w" new_line
+ regsub -all {%llvmgcc} $new_line "$llvmgcc $emitir -w" new_line
#replace %llvmgxx with actual path to llvmg++
- regsub -all {%llvmgxx} $new_line "$llvmgxx -emit-llvm -w" new_line
+ regsub -all {%llvmgxx} $new_line "$llvmgxx $emitir -w" new_line
#replace %compile_cxx with C++ compilation command
regsub -all {%compile_cxx} $new_line "$compile_cxx" new_line
#replace %compile_c with C compilation command