Automatically pass -emit-llvm to llvmgcc when using %llvmgcc
authorChris Lattner <sabre@nondot.org>
Wed, 8 Mar 2006 22:32:20 +0000 (22:32 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 8 Mar 2006 22:32:20 +0000 (22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26623 91177308-0d34-0410-b5e6-96231b3b80d8

test/lib/llvm-dg.exp

index 3e10e01acfd2ae99a10993542a918af8ebe3cf48..13df64ba408fef762309267645fcea8c63caa539 100644 (file)
@@ -57,10 +57,10 @@ proc llvm-runtest { programs objdir srcdir subdir target_triplet llvmgcc llvmgxx
                regsub -all {%p} $new_runline [file join $srcdir $subdir] new_runline
 
                #replace %llvmgcc with actual path to llvmgcc
-               regsub -all {%llvmgcc} $new_runline $llvmgcc new_runline
+               regsub -all {%llvmgcc} $new_runline "$llvmgcc -emit-llvm" new_runline
 
                #replace %llvmgxx with actual path to llvmg++
-               regsub -all {%llvmgxx} $new_runline $llvmgxx new_runline
+               regsub -all {%llvmgxx} $new_runline "$llvmgxx -emit-llvm" new_runline
                
                puts $scriptFileId $new_runline
            } elseif {[regexp {XFAIL:[ *](.+)} $line match targets]} {