From: Vikram S. Adve Date: Tue, 3 Jun 2003 18:56:57 +0000 (+0000) Subject: Improved how tracing can be used: X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=24672c3d12cc8b4a1de80824b0140f3381906840;p=oota-llvm.git Improved how tracing can be used: -- added new targets %.trace-out-llc and %.trace-out-cbe -- either TRACE=yes or TRACEM=yes is still needed and chooses how to trace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6585 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Makefile.tests b/test/Makefile.tests index 8ae3465605c..91e466912d4 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -63,15 +63,21 @@ TESTRUNR = $(LEVEL)/test/TestRunner.sh NATGCC = /usr/dcs/software/supported/bin/gcc CP = /bin/cp -f +## If TRACE or TRACEM is "yes", set the appropriate llc flag (-trace or -tracem) +## mark that tracing on, and set the TRACELIBS variable. ifeq ($(TRACE), yes) - LLCFLAGS += -trace basicblock - LLCLIBS := -L$(LEVEL)/test/Libraries/Output -linstr64 + LLCFLAGS += -trace + DOTRACING = yes else ifeq ($(TRACEM), yes) - LLCFLAGS += -trace function - LLCLIBS := -L$(LEVEL)/test/Libraries/Output -linstr64 + LLCFLAGS += -tracem + DOTRACING = yes endif endif +ifeq ($(DOTRACING), yes) + TRACELIBS := -L$(LEVEL)/test/Libraries/Output -linstr64 +endif + LLCLIBS := $(LLCLIBS) -lm