Author: reid Date: Sat Aug 11 11:11:22 2007 New Revision: 41019 URL: http://llvm.org/viewvc/llvm-project?rev=41019&view=rev Log: Now that llvm-ld can accept - as input from stdin, use this feature to extract the pass arguments that it supports.
Modified: llvm/trunk/utils/findmisopt Modified: llvm/trunk/utils/findmisopt URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/findmisopt?rev=41019&r1=41018&r2=41019&view=diff ============================================================================== --- llvm/trunk/utils/findmisopt (original) +++ llvm/trunk/utils/findmisopt Sat Aug 11 11:11:22 2007 @@ -95,8 +95,8 @@ # Define the list of optimizations to run. This comprises the same set of # optimizations that opt -std-compile-opts and gccld run, in the same order. opt_switches=`llvm-as < /dev/null -o - | opt -std-compile-opts -disable-output -debug-pass=Arguments 2>&1 | sed 's/Pass Arguments: //'` -gccld_switches="-internalize -ipsccp -globalopt -constmerge -deadargelim -inline -prune-eh -globalopt -globaldce -argpromotion -instcombine -predsimplify -scalarrepl -globalsmodref-aa -licm -load-vn -gcse -dse -instcombine -simplifycfg -verify" -all_switches="$opt_switches $gccld_switches" +ld_switches=`llvm-as < /dev/null -o - | llvm-ld - -std-link-opts -disable-output -debug-pass=Arguments 2>&1 | sed 's/Pass Arguments: //'` +all_switches="$opt_switches $ld_switches" echo "Passes : $all_switches" # Current set of switches is empty _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits