aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-02-23 09:04:28 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-02-23 09:04:28 +0000
commitbe6ee7c116f8f768a180df6eba6799a6660722e7 (patch)
tree3006b1eabe59ac0a33431d2652591636c7019d98 /tools
parent9f2a0802e548d07946e6ad47cb06b53c105bdb65 (diff)
downloadexternal_llvm-be6ee7c116f8f768a180df6eba6799a6660722e7.zip
external_llvm-be6ee7c116f8f768a180df6eba6799a6660722e7.tar.gz
external_llvm-be6ee7c116f8f768a180df6eba6799a6660722e7.tar.bz2
New experimental/undocumented feature: 'works_on_empty'.
For now, just enough support to make -filelist work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvmc/plugins/Base/Base.td.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in
index 284c5f9..d36554c 100644
--- a/tools/llvmc/plugins/Base/Base.td.in
+++ b/tools/llvmc/plugins/Base/Base.td.in
@@ -76,6 +76,8 @@ def OptList : OptionList<[
(help "Specifies a framework to link against")),
(parameter_list_option "weak_framework",
(help "Specifies a framework to weakly link against"), (hidden)),
+ (parameter_option "filelist", (hidden),
+ (help "Link the files listed in file")),
(prefix_list_option "F",
(help "Add a directory to framework search path")),
(prefix_list_option "I",
@@ -242,6 +244,8 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool<
(out_language "executable"),
(output_suffix "out"),
(cmd_line !strconcat(cmd_prefix, " $INFILE -o $OUTFILE")),
+ (works_on_empty (case (not_empty "filelist"), true,
+ (default), false)),
(join),
(actions (case
(switch_on "pthread"), (append_cmd "-lpthread"),
@@ -250,6 +254,7 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool<
(not_empty "arch"), (forward "arch"),
(not_empty "framework"), (forward "framework"),
(not_empty "weak_framework"), (forward "weak_framework"),
+ (not_empty "filelist"), (forward "filelist"),
(switch_on "m32"), (forward "m32"),
(switch_on "m64"), (forward "m64"),
(not_empty "l"), (forward "l"),