2006-11-30 07:36:44 +01:00
|
|
|
##===- tools/llvm-upgrade/Makefile -------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by Reid Spencer and is distributed under the
|
|
|
|
# University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
LEVEL = ../..
|
|
|
|
TOOLNAME = llvm-upgrade
|
|
|
|
LINK_COMPONENTS := support system
|
2006-11-30 17:50:26 +01:00
|
|
|
REQUIRES_EH := 1
|
2006-11-30 07:36:44 +01:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
|
|
|
# Make the object code file for the lexer depend upon the header file generated
|
|
|
|
# by the Bison parser. This prevents the Lexer from being compiled before the
|
|
|
|
# header file it needs is built.
|
|
|
|
$(ObjDir)/upgradeLexer.o: $(PROJ_SRC_DIR)/UpgradeParser.h
|
|
|
|
|
2006-12-01 21:26:20 +01:00
|
|
|
TESTCASE=../../test/Regression/Assembler/2004-09-29-VerifierIsReallySlow.llx
|
2006-11-30 07:36:44 +01:00
|
|
|
test:
|
2006-12-01 21:26:20 +01:00
|
|
|
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
|
|
|
|
|
2006-12-01 21:36:40 +01:00
|
|
|
valgrind:
|
|
|
|
valgrind ../../Debug/bin/llvm-upgrade -o /dev/null -f $(TESTCASE)
|
|
|
|
|
2006-12-01 21:26:20 +01:00
|
|
|
$(PROJ_SRC_DIR)/UpgradeParser.h: $(PROJ_SRC_DIR)/UpgradeParser.y
|
|
|
|
$(PROJ_SRC_DIR)/UpgradeParser.cpp: $(PROJ_SRC_DIR)/UpgradeParser.y
|