From 8a3109fb8ed0db37b66a6ee9978ee4ae095cb9c4 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 23 Feb 2010 09:05:15 +0000 Subject: [PATCH] Support -Xlinker et al. llvm-svn: 96926 --- tools/llvmc/plugins/Base/Base.td.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in index 6bfdf417f3e..d2c1f0c04ed 100644 --- a/tools/llvmc/plugins/Base/Base.td.in +++ b/tools/llvmc/plugins/Base/Base.td.in @@ -84,8 +84,12 @@ def OptList : OptionList<[ (help "Add a directory to include path")), (prefix_list_option "D", (help "Define a macro")), + (parameter_list_option "Xpreprocessor", (hidden), + (help "Pass options to preprocessor")), (prefix_list_option "Wa,", (comma_separated), (help "Pass options to assembler")), + (parameter_list_option "Xassembler", (hidden), + (help "Pass options to assembler")), (prefix_list_option "Wllc,", (comma_separated), (help "Pass options to llc")), (prefix_list_option "L", @@ -94,6 +98,8 @@ def OptList : OptionList<[ (help "Search a library when linking")), (prefix_list_option "Wl,", (help "Pass options to linker")), + (parameter_list_option "Xlinker", (hidden), + (help "Pass options to linker")), (prefix_list_option "Wo,", (comma_separated), (help "Pass options to opt")), (prefix_list_option "m", @@ -154,6 +160,7 @@ class llvm_gcc_based ; def llc : Tool< @@ -269,6 +277,7 @@ class llvm_gcc_based_linker : Tool< (switch_on "m32"), (forward "m32"), (switch_on "m64"), (forward "m64"), (not_empty "l"), (forward "l"), + (not_empty "Xlinker"), (forward "Xlinker"), (not_empty "Wl,"), (forward "Wl,"), (switch_on "dynamiclib"), (forward "dynamiclib"), (switch_on "prebind"), (forward "prebind"),