summaryrefslogtreecommitdiffstats
path: root/llvm/test/lib
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
commit8bf97c232422a5aa37f0cd25a02997beaf4755f5 (patch)
tree7d85998007309b5ef21fc4aef0d80220078b72f5 /llvm/test/lib
parent945a246ad8eb82a1ec3d01a6bdae624afab94aa9 (diff)
downloadbcm5719-llvm-8bf97c232422a5aa37f0cd25a02997beaf4755f5.tar.gz
bcm5719-llvm-8bf97c232422a5aa37f0cd25a02997beaf4755f5.zip
Byebye llvm-upgrade!
llvm-svn: 48762
Diffstat (limited to 'llvm/test/lib')
-rw-r--r--llvm/test/lib/llvm2cpp.exp19
1 files changed, 3 insertions, 16 deletions
diff --git a/llvm/test/lib/llvm2cpp.exp b/llvm/test/lib/llvm2cpp.exp
index b4141acabd6..a0a023213f9 100644
--- a/llvm/test/lib/llvm2cpp.exp
+++ b/llvm/test/lib/llvm2cpp.exp
@@ -12,7 +12,6 @@ proc llvm2cpp-test { files } {
set llvm2cpp [file join $llvmtoolsdir llvm2cpp ]
set llvmas [file join $llvmtoolsdir llvm-as ]
set llvmdis [file join $llvmtoolsdir llvm-dis ]
- set llvmupgrade [ file join $llvmtoolsdir llvm-upgrade ]
#Make Output Directory if it does not exist already
if { [file exists path] } {
@@ -46,22 +45,10 @@ proc llvm2cpp-test { files } {
continue;
}
- # Scan the test file to see if there's a line with "lvm-upgrade" in it.
- # If so, run llvm-upgrade first or else llvm-as will fail on it.
+ # Run llvm-as/llvm-dis
+ set pipeline llvm-as|llvm-dis
set retval [ catch {
- exec -keepnewline grep llvm-upgrade $test 2>/dev/null } msg ]
-
- if { $retval == 0 } {
- # In this case we must run llvm-upgrade before llvm-as
- set pipeline llvm-upgrade|llvm-as|llvm-dis
- set retval [ catch {
- exec -keepnewline $llvmupgrade < $test -o - | $llvmas | $llvmdis -f -o $assembly 2>/dev/null } msg ]
- } else {
- # llvm-upgrade not necessary, just llvm-as/llvm-dis
- set pipeline llvm-as|llvm-dis
- set retval [ catch {
- exec -keepnewline $llvmas < $test -o - | $llvmdis -f -o $assembly 2>/dev/null } msg ]
- }
+ exec -keepnewline $llvmas < $test -o - | $llvmdis -f -o $assembly 2>/dev/null } msg ]
if { $retval != 0 } {
fail "$test: $pipeline returned $retval\n$msg"
OpenPOWER on IntegriCloud