diff options
author | Reid Spencer <reid@x10sys.com> | 2007-08-11 16:11:22 +0000 |
---|---|---|
committer | Reid Spencer <reid@x10sys.com> | 2007-08-11 16:11:22 +0000 |
commit | 330d7e354b084f7c75024e0be5eb3572888364dd (patch) | |
tree | ad237900fd632858eda6707a75a3767a9194b831 /utils/findmisopt | |
parent | 10ffdf1f0e6cea0c2315a844ba16627fd1f3bc27 (diff) | |
download | external_llvm-330d7e354b084f7c75024e0be5eb3572888364dd.zip external_llvm-330d7e354b084f7c75024e0be5eb3572888364dd.tar.gz external_llvm-330d7e354b084f7c75024e0be5eb3572888364dd.tar.bz2 |
Now that llvm-ld can accept - as input from stdin, use this feature to extract
the pass arguments that it supports.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/findmisopt')
-rwxr-xr-x | utils/findmisopt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/findmisopt b/utils/findmisopt index 2c1dc08..a2f77a3 100755 --- a/utils/findmisopt +++ b/utils/findmisopt @@ -95,8 +95,8 @@ ex1=$? # 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 |