diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-12-11 22:19:14 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-12-11 22:19:14 +0000 |
commit | ba71d677dde1911972d66a321811c3f8f9dbf0af (patch) | |
tree | fee02779d34078e2f92563a349560acdbbe46141 /tools/llvmc | |
parent | 38b6fd67a6c4151ff56414cc3be5092bd7a2ddd8 (diff) |
Add a '-Wo,' option that passes options to opt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60902 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/plugins/Base/Base.td | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td b/tools/llvmc/plugins/Base/Base.td index 38455a9d43..18372de617 100644 --- a/tools/llvmc/plugins/Base/Base.td +++ b/tools/llvmc/plugins/Base/Base.td @@ -43,7 +43,9 @@ def OptList : OptionList<[ (prefix_list_option "l", (help "Search a library when linking")), (prefix_list_option "Wl,", - (help "Pass options to linker")) + (help "Pass options to linker")), + (prefix_list_option "Wo,", + (help "Pass options to opt")) ]>; // Tools @@ -86,6 +88,7 @@ def opt : Tool< [(in_language "llvm-bitcode"), (out_language "llvm-bitcode"), (output_suffix "bc"), + (actions (case (not_empty "Wo,"), (unpack_values "Wo,"))), (cmd_line "opt -f $INFILE -o $OUTFILE") ]>; |