diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:04:28 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:04:28 +0000 |
| commit | ebf8fbbb8fdfa66198158fbcf62cee0c3012e8b7 (patch) | |
| tree | 417815d39a9d3281bc30e9349727336ab71ca294 /llvm/tools/llvmc/plugins/Base/Base.td.in | |
| parent | 23cce8188bf4d14cd5b5ca37b5196f2cf7c620d7 (diff) | |
| download | bcm5719-llvm-ebf8fbbb8fdfa66198158fbcf62cee0c3012e8b7.tar.gz bcm5719-llvm-ebf8fbbb8fdfa66198158fbcf62cee0c3012e8b7.zip | |
New experimental/undocumented feature: 'works_on_empty'.
For now, just enough support to make -filelist work.
llvm-svn: 96918
Diffstat (limited to 'llvm/tools/llvmc/plugins/Base/Base.td.in')
| -rw-r--r-- | llvm/tools/llvmc/plugins/Base/Base.td.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvmc/plugins/Base/Base.td.in b/llvm/tools/llvmc/plugins/Base/Base.td.in index 284c5f95fbe..d36554c9da9 100644 --- a/llvm/tools/llvmc/plugins/Base/Base.td.in +++ b/llvm/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"), |

