[lld] r248969 - ELF2: Tidy up Options.td.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 17:33:02 PDT 2015
Author: ruiu
Date: Wed Sep 30 19:33:02 2015
New Revision: 248969
URL: http://llvm.org/viewvc/llvm-project?rev=248969&view=rev
Log:
ELF2: Tidy up Options.td.
Fix indentation and sort options alphabetically.
Modified:
lld/trunk/ELF/Options.td
Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=248969&r1=248968&r2=248969&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Wed Sep 30 19:33:02 2015
@@ -1,66 +1,53 @@
include "llvm/Option/OptParser.td"
-//===----------------------------------------------------------------------===//
-/// Utility Functions
-//===----------------------------------------------------------------------===//
-
-def output : Separate<["-"], "o">, MetaVarName<"<path>">,
- HelpText<"Path to file to write output">;
-
-def dynamic_linker : Separate<["-"], "dynamic-linker">,
- HelpText<"Which dynamic linker to use">;
-
-def rpath : Separate<["-"], "rpath">,
- HelpText<"Add a DT_RUNPATH to the output">;
+def L : Joined<["-"], "L">, MetaVarName<"<dir>">,
+ HelpText<"Directory to search for libraries">;
-def shared : Flag<["-"], "shared">,
- HelpText<"Build a shared object">;
+def allow_multiple_definition: Flag<["--"], "allow-multiple-definition">,
+ HelpText<"Allow multiple definitions">;
def discard_all : Flag<["-"], "discard-all">,
- HelpText<"Delete all local symbols">;
-
-def alias_discard_all: Flag<["-"], "x">,
- Alias<discard_all>;
+ HelpText<"Delete all local symbols">;
def discard_locals : Flag<["-"], "discard-locals">,
- HelpText<"Delete temporary local symbols">;
+ HelpText<"Delete temporary local symbols">;
-def alias_discard_locals: Flag<["-"], "X">,
- Alias<discard_locals>;
+def discard_none : Flag<["-"], "discard-none">,
+ HelpText<"Keep all symbols in the symbol table">;
-def noinhibit_exec : Flag<["--"], "noinhibit-exec">,
- HelpText<"Retain the executable output file whenever"
- " it is still usable">;
+def dynamic_linker : Separate<["-"], "dynamic-linker">,
+ HelpText<"Which dynamic linker to use">;
-def discard_none : Flag<["-"], "discard-none">,
- HelpText<"Keep all symbols in the symbol table">;
+def entry : Separate<["--", "-"], "entry">, MetaVarName<"<entry>">,
+ HelpText<"Name of entry point symbol">;
def export_dynamic : Flag<["--"], "export-dynamic">,
- HelpText<"Put symbols in the dynamic symbol table">;
+ HelpText<"Put symbols in the dynamic symbol table">;
-def allow_multiple_definition: Flag<["--"], "allow-multiple-definition">,
- HelpText<"Allow multiple definitions">;
+def l : Joined<["-"], "l">, MetaVarName<"<libName>">,
+ HelpText<"Root name of library to use">;
-def L : Joined<["-"], "L">, MetaVarName<"<dir>">,
- HelpText<"Directory to search for libraries">;
+def noinhibit_exec : Flag<["--"], "noinhibit-exec">,
+ HelpText<"Retain the executable output file whenever it is still usable">;
-def alias_L : Joined<["--"], "library-path=">,
- Alias<L>;
+def output : Separate<["-"], "o">, MetaVarName<"<path>">,
+ HelpText<"Path to file to write output">;
-def l : Joined<["-"], "l">, MetaVarName<"<libName>">,
- HelpText<"Root name of library to use">;
+def rpath : Separate<["-"], "rpath">,
+ HelpText<"Add a DT_RUNPATH to the output">;
-def alias_l : Joined<["--"], "library=">,
- Alias<l>;
+def shared : Flag<["-"], "shared">,
+ HelpText<"Build a shared object">;
def sysroot : Joined<["--"], "sysroot=">,
- HelpText<"Set the system root">;
-
-def entry : Separate<["--", "-"], "entry">, MetaVarName<"<entry>">,
- HelpText<"Name of entry point symbol">;
+ HelpText<"Set the system root">;
-def alias_entry : Separate<["-"], "e">,
- Alias<entry>;
+// Aliases
+def alias_L : Joined<["--"], "library-path=">, Alias<L>;
+def alias_discard_all: Flag<["-"], "x">, Alias<discard_all>;
+def alias_discard_locals: Flag<["-"], "X">, Alias<discard_locals>;
+def alias_entry : Separate<["-"], "e">, Alias<entry>;
+def alias_l : Joined<["--"], "library=">, Alias<l>;
// Options listed below are silently ignored now.
def as_needed : Flag<["--"], "as-needed">;
More information about the llvm-commits
mailing list