From 3687007119e5cdf8482d776814d1613c24e5b244 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 11 Aug 2007 16:11:22 +0000 Subject: [PATCH] Now that llvm-ld can accept - as input from stdin, use this feature to extract the pass arguments that it supports. llvm-svn: 41019 --- llvm/utils/findmisopt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/utils/findmisopt b/llvm/utils/findmisopt index 2c1dc0812aaf..a2f77a33129a 100755 --- a/llvm/utils/findmisopt +++ b/llvm/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