summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ToolDrivers/llvm-lib/Options.td
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-05-13 22:06:46 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-05-13 22:06:46 +0000
commitc6f07c423d0adf0b96c8690bb893ebad534b753b (patch)
tree076d2d68024b78ad9445b610c14939603ce66d9e /llvm/lib/ToolDrivers/llvm-lib/Options.td
parent78b0ce03e9ee069ffec981f46c69436363a3b473 (diff)
downloadbcm5719-llvm-c6f07c423d0adf0b96c8690bb893ebad534b753b.tar.gz
bcm5719-llvm-c6f07c423d0adf0b96c8690bb893ebad534b753b.zip
Move lib/LibDriver -> lib/ToolDrivers/llvm-lib. NFCI.
This reorganisation prevents us from cluttering up the top-level lib directory with more driver libraries such as llvm-dlltool (see D29892). llvm-svn: 302995
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/Options.td')
-rw-r--r--llvm/lib/ToolDrivers/llvm-lib/Options.td25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/lib/ToolDrivers/llvm-lib/Options.td b/llvm/lib/ToolDrivers/llvm-lib/Options.td
new file mode 100644
index 00000000000..5a56ef7468d
--- /dev/null
+++ b/llvm/lib/ToolDrivers/llvm-lib/Options.td
@@ -0,0 +1,25 @@
+include "llvm/Option/OptParser.td"
+
+// lib.exe accepts options starting with either a dash or a slash.
+
+// Flag that takes no arguments.
+class F<string name> : Flag<["/", "-", "-?"], name>;
+
+// Flag that takes one argument after ":".
+class P<string name, string help> :
+ Joined<["/", "-", "-?"], name#":">, HelpText<help>;
+
+def libpath: P<"libpath", "Object file search path">;
+def out : P<"out", "Path to file to write output">;
+
+def llvmlibthin : F<"llvmlibthin">;
+
+//==============================================================================
+// The flags below do nothing. They are defined only for lib.exe compatibility.
+//==============================================================================
+
+class QF<string name> : Joined<["/", "-", "-?"], name#":">;
+
+def ignore : QF<"ignore">;
+def machine: QF<"machine">;
+def nologo : F<"nologo">;
OpenPOWER on IntegriCloud