mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
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
This commit is contained in:
parent
ba28cb91c9
commit
3c5b57c884
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user