switch from hard coded g++/as tools to the ones detected from
authorChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2008 06:52:10 +0000 (06:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2008 06:52:10 +0000 (06:52 +0000)
the build system.  Patch by Joachim Durchholz  for PR2121

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48134 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2006-11-06-StackTrace.cpp
test/C++Frontend/2006-11-30-NoCompileUnit.cpp
test/C++Frontend/2006-11-30-Pubnames.cpp

index 0c2c0afab95021edbb30d628f4bb64e921d8b4bd..55b34ad82d52385c06838a2cd17d7f69092c4e94 100644 (file)
@@ -1,7 +1,7 @@
 // This is a regression test on debug info to make sure that we can get a
 // meaningful stack trace from a C++ program.
 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-elim -o %t.s -f
-// RUN: as %t.s -o %t.o
+// RUN: %compile_c %t.s -o %t.o
 // RUN: %link %t.o -o %t.exe
 // RUN: echo {break DeepStack::deepest\nrun 17\nwhere\n} > %t.in 
 // RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | \
index 4203ab1ad1c877040b9285b50b4776e84357b29b..c1fa9aed894fbe6af8167fcf7310eae828ba597e 100644 (file)
@@ -2,8 +2,8 @@
 // unit size issue with gdb.
 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
 // RUN:   llc --disable-fp-elim -o NoCompileUnit.s -f
-// RUN: as NoCompileUnit.s -o NoCompileUnit.o
-// RUN: g++ NoCompileUnit.o -o NoCompileUnit.exe
+// RUN: %compile_c NoCompileUnit.s -o NoCompileUnit.o
+// RUN: %compile_cxx NoCompileUnit.o -o NoCompileUnit.exe
 // RUN: echo {break main\nrun\np NoCompileUnit::pubname} > %t2
 // RUN: gdb -q -batch -n -x %t2 NoCompileUnit.exe | \
 // RUN:   tee NoCompileUnit.out | not grep {"low == high"}
index 698f30bc0527d26fffb9e2c9e0fc431b15de16e7..c6165a6e354c9f7d14cd9e24af53dad08b41f520 100644 (file)
@@ -2,7 +2,7 @@
 // qualified global names.
 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
 // RUN:   llc --disable-fp-elim -o %t.s -f
-// RUN: as %t.s -o %t.o
+// RUN: %compile_c %t.s -o %t.o
 // RUN: %link %t.o -o %t.exe
 // RUN: echo {break main\nrun\np Pubnames::pubname} > %t.in
 // RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | grep {\$1 = 10}