aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-02-23 09:05:15 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-02-23 09:05:15 +0000
commit130bedecee17cb2003863684a6582d4bb613b24d (patch)
tree55829427af8b0a52fbf79a88919edbbbcb7215a7 /tools
parent94f84b91a21e991345aab78a052e1cc1fad230b9 (diff)
downloadexternal_llvm-130bedecee17cb2003863684a6582d4bb613b24d.zip
external_llvm-130bedecee17cb2003863684a6582d4bb613b24d.tar.gz
external_llvm-130bedecee17cb2003863684a6582d4bb613b24d.tar.bz2
Support -Xlinker et al.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvmc/plugins/Base/Base.td.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in
index 6bfdf41..d2c1f0c 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 <string cmd_prefix, string in_lang,
[(append_cmd "-c"), (append_cmd "-emit-llvm")],
// Forwards
+ (not_empty "Xpreprocessor"), (forward "Xpreprocessor"),
(not_empty "include"), (forward "include"),
(not_empty "iquote"), (forward "iquote"),
(not_empty "save-temps"), (append_cmd "-save-temps"),
@@ -225,7 +232,8 @@ def llvm_gcc_assembler : Tool<
(actions (case
(switch_on "c"), (stop_compilation),
(not_empty "arch"), (forward "arch"),
- (not_empty "Wa,"), (forward_value "Wa,")))
+ (not_empty "Xassembler"), (forward "Xassembler"),
+ (not_empty "Wa,"), (forward "Wa,")))
]>;
def llc : Tool<
@@ -269,6 +277,7 @@ class llvm_gcc_based_linker <string cmd_prefix> : 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"),