llvm.org GIT mirror llvm / 802cd84
Re-commit r67334 and r67349 with fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67451 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 10 years ago
4 changed file(s) with 17 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
None ; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg -silence-passes
0 ; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg -silence-passes %bugpoint_topts
11
22 @.LC0 = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1]
33
None ; RUN: bugpoint %s -bugpoint-crashcalls -silence-passes
0 ; RUN: bugpoint %s -bugpoint-crashcalls -silence-passes
11
22 ; Test to make sure that arguments are removed from the function if they are
33 ; unnecessary.
8686 else
8787 DSYMUTIL=true
8888 endif
89 ifdef TargetCommonOpts
90 BUGPOINT_TOPTS="-gcc-tool-args $(TargetCommonOpts)"
91 else
92 BUGPOINT_TOPTS=""
93 endif
8994
9095 FORCE:
9196
107112 @echo 'set objdir "$(LLVM_OBJ_ROOT)/test"' >>site.tmp
108113 @echo 'set gccpath "$(CC)"' >>site.tmp
109114 @echo 'set gxxpath "$(CXX)"' >>site.tmp
110 @echo 'set compile_c "' $(CC) $(CPP.Flags) $(CompileCommonOpts) -c '"' >>site.tmp
111 @echo 'set compile_cxx "' $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) -c '"' >> site.tmp
112 @echo 'set link "' $(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) $(LD.Flags) '"' >>site.tmp
113 @echo 'set llvmgcc "$(LLVMGCC) $(EXTRA_OPTIONS)"' >> site.tmp
114 @echo 'set llvmgxx "$(LLVMGCC) $(EXTRA_OPTIONS)"' >> site.tmp
115 @echo 'set compile_c "' $(CC) $(CPP.Flags) $(TargetCommonOpts) $(CompileCommonOpts) -c '"' >>site.tmp
116 @echo 'set compile_cxx "' $(CXX) $(CPP.Flags) $(CXX.Flags) $(TargetCommonOpts) $(CompileCommonOpts) -c '"' >> site.tmp
117 @echo 'set link "' $(CXX) $(CPP.Flags) $(CXX.Flags) $(TargetCommonOpts) $(CompileCommonOpts) $(LD.Flags) '"' >>site.tmp
118 @echo 'set llvmgcc "$(LLVMGCC) $(TargetCommonOpts) $(EXTRA_OPTIONS)"' >> site.tmp
119 @echo 'set llvmgxx "$(LLVMGCC) $(TargetCommonOpts) $(EXTRA_OPTIONS)"' >> site.tmp
115120 @echo 'set llvmgccmajvers "$(LLVMGCC_MAJVERS)"' >> site.tmp
121 @echo 'set bugpoint_topts $(BUGPOINT_TOPTS)' >> site.tmp
116122 @echo 'set shlibext "$(SHLIBEXT)"' >> site.tmp
117123 @echo 'set ocamlc "$(OCAMLC) -cc $(CXX) -I $(LibDir)/ocaml"' >> site.tmp
118124 @echo 'set valgrind "$(VALGRIND)"' >> site.tmp
4747 proc substitute { line test tmpFile } {
4848 global srcroot objroot srcdir objdir subdir target_triplet prcontext
4949 global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers ocamlc
50 global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir llvmdsymutil
51 global valgrind grep gas
50 global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
51 global llvmdsymutil valgrind grep gas bugpoint_topts
5252 set path [file join $srcdir $subdir]
5353
5454 # Substitute all Tcl variables.
7676 regsub -all {%llvmdsymutil} $new_line "$llvmdsymutil" new_line
7777 #replace %llvmlibsdir with configure library directory
7878 regsub -all {%llvmlibsdir} $new_line "$llvmlibsdir" new_line
79 #replace %bugpoint_topts with actual bugpoint target options
80 regsub -all {%bugpoint_topts} $new_line "$bugpoint_topts" new_line
7981 #replace %p with path to source,
8082 regsub -all {%p} $new_line [file join $srcdir $subdir] new_line
8183 #replace %s with filename