aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-upgrade/Makefile
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-01 20:26:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-01 20:26:20 +0000
commite77e35e8b198213c5e6599be97e2545f3fe99160 (patch)
tree7f9ef22eed9fdef20148f19f6d4e87fc55500fae /tools/llvm-upgrade/Makefile
parent102e2d3c82e3671cdabbfed9012792cd1bb3493a (diff)
downloadexternal_llvm-e77e35e8b198213c5e6599be97e2545f3fe99160.zip
external_llvm-e77e35e8b198213c5e6599be97e2545f3fe99160.tar.gz
external_llvm-e77e35e8b198213c5e6599be97e2545f3fe99160.tar.bz2
First version of llvm-upgrade that can correctly upgrade a large test
case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade/Makefile')
-rw-r--r--tools/llvm-upgrade/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/llvm-upgrade/Makefile b/tools/llvm-upgrade/Makefile
index a5280a5..9762c33 100644
--- a/tools/llvm-upgrade/Makefile
+++ b/tools/llvm-upgrade/Makefile
@@ -19,5 +19,12 @@ include $(LEVEL)/Makefile.common
# header file it needs is built.
$(ObjDir)/upgradeLexer.o: $(PROJ_SRC_DIR)/UpgradeParser.h
+TESTCASE=../../test/Regression/Assembler/2004-09-29-VerifierIsReallySlow.llx
test:
- ../../Debug/bin/llvm-upgrade -o - ../../test/Feature/basictest.ll
+ llvm-as $(TESTCASE) -o - | llvm-dis -o source.ll -f
+ ../../Debug/bin/llvm-upgrade -o - $(TESTCASE) 2>err.out | llvm-as | \
+ llvm-dis > upgrade.ll -f
+ diff source.ll upgrade.ll > diff.out
+
+$(PROJ_SRC_DIR)/UpgradeParser.h: $(PROJ_SRC_DIR)/UpgradeParser.y
+$(PROJ_SRC_DIR)/UpgradeParser.cpp: $(PROJ_SRC_DIR)/UpgradeParser.y