[llvm-commits] [poolalloc] r130182 - /poolalloc/trunk/test/Makefile

Arushi Aggarwal aggarwa4 at illinois.edu
Mon Apr 25 19:37:55 PDT 2011


Author: aggarwa4
Date: Mon Apr 25 21:37:55 2011
New Revision: 130182

URL: http://llvm.org/viewvc/llvm-project?rev=130182&view=rev
Log:
Allows using the AssistSO library in the lit tests.

Modified:
    poolalloc/trunk/test/Makefile

Modified: poolalloc/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/Makefile?rev=130182&r1=130181&r2=130182&view=diff
==============================================================================
--- poolalloc/trunk/test/Makefile (original)
+++ poolalloc/trunk/test/Makefile Mon Apr 25 21:37:55 2011
@@ -417,13 +417,16 @@
 PADIR   := $(LLVM_OBJ_ROOT)/projects/poolalloc
 # Pathame to the DSA pass dynamic library
 DSA_SO   := $(PADIR)/$(CONFIGURATION)/lib/libLLVMDataStructure$(SHLIBEXT)
+# Pathame to the Assist DSA pass dynamic library
+ADSA_SO   := $(PADIR)/$(CONFIGURATION)/lib/libAssistDS$(SHLIBEXT)
 # Pathname to the PA pass dynamic library
 PA_SO   := $(PADIR)/$(CONFIGURATION)/lib/libpoolalloc$(SHLIBEXT)
 
 DSAOPT := $(PROJ_OBJ_ROOT)/test/tools/dsaopt
+ADSAOPT := $(PROJ_OBJ_ROOT)/test/tools/adsaopt
 PAOPT := $(PROJ_OBJ_ROOT)/test/tools/paopt
 
-TOOLS= $(DSAOPT) $(PAOPT)
+TOOLS= $(DSAOPT) $(PAOPT) $(ADSAOPT)
 
 #wrapper script for 'opt' so we can avoid manually loading the dsa lib
 $(DSAOPT):
@@ -433,6 +436,13 @@
 	@chmod +x $@.tmp
 	@mv $@.tmp $@
 
+$(ADSAOPT):
+	@mkdir -p `dirname $@`
+	@echo "#!/bin/sh" >> $@.tmp
+	@echo 'opt -load $(DSA_SO) -load $(ADSA_SO) $$@' >> $@.tmp
+	@chmod +x $@.tmp
+	@mv $@.tmp $@
+
 #wrapper script for 'opt' that loads dsa and poolalloc
 $(PAOPT):
 	@mkdir -p `dirname $@`





More information about the llvm-commits mailing list