ELF2: Tidy up Options.td.

Fix indentation and sort options alphabetically.

llvm-svn: 248969
This commit is contained in:
Rui Ueyama 2015-10-01 00:33:02 +00:00
parent 7c41dd6498
commit 1c8092c915
1 changed files with 39 additions and 52 deletions

View File

@ -1,66 +1,53 @@
include "llvm/Option/OptParser.td" include "llvm/Option/OptParser.td"
//===----------------------------------------------------------------------===// def L : Joined<["-"], "L">, MetaVarName<"<dir>">,
/// Utility Functions HelpText<"Directory to search for libraries">;
//===----------------------------------------------------------------------===//
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 shared : Flag<["-"], "shared">,
HelpText<"Build a shared object">;
def discard_all : Flag<["-"], "discard-all">,
HelpText<"Delete all local symbols">;
def alias_discard_all: Flag<["-"], "x">,
Alias<discard_all>;
def discard_locals : Flag<["-"], "discard-locals">,
HelpText<"Delete temporary local symbols">;
def alias_discard_locals: Flag<["-"], "X">,
Alias<discard_locals>;
def noinhibit_exec : Flag<["--"], "noinhibit-exec">,
HelpText<"Retain the executable output file whenever"
" it is still usable">;
def discard_none : Flag<["-"], "discard-none">,
HelpText<"Keep all symbols in the symbol table">;
def export_dynamic : Flag<["--"], "export-dynamic">,
HelpText<"Put symbols in the dynamic symbol table">;
def allow_multiple_definition: Flag<["--"], "allow-multiple-definition">, def allow_multiple_definition: Flag<["--"], "allow-multiple-definition">,
HelpText<"Allow multiple definitions">; HelpText<"Allow multiple definitions">;
def L : Joined<["-"], "L">, MetaVarName<"<dir>">, def discard_all : Flag<["-"], "discard-all">,
HelpText<"Directory to search for libraries">; HelpText<"Delete all local symbols">;
def alias_L : Joined<["--"], "library-path=">, def discard_locals : Flag<["-"], "discard-locals">,
Alias<L>; HelpText<"Delete temporary local symbols">;
def l : Joined<["-"], "l">, MetaVarName<"<libName>">, def discard_none : Flag<["-"], "discard-none">,
HelpText<"Root name of library to use">; HelpText<"Keep all symbols in the symbol table">;
def alias_l : Joined<["--"], "library=">, def dynamic_linker : Separate<["-"], "dynamic-linker">,
Alias<l>; HelpText<"Which dynamic linker to use">;
def sysroot : Joined<["--"], "sysroot=">,
HelpText<"Set the system root">;
def entry : Separate<["--", "-"], "entry">, MetaVarName<"<entry>">, def entry : Separate<["--", "-"], "entry">, MetaVarName<"<entry>">,
HelpText<"Name of entry point symbol">; HelpText<"Name of entry point symbol">;
def alias_entry : Separate<["-"], "e">, def export_dynamic : Flag<["--"], "export-dynamic">,
Alias<entry>; HelpText<"Put symbols in the dynamic symbol table">;
def l : Joined<["-"], "l">, MetaVarName<"<libName>">,
HelpText<"Root name of library to use">;
def noinhibit_exec : Flag<["--"], "noinhibit-exec">,
HelpText<"Retain the executable output file whenever it is still usable">;
def output : Separate<["-"], "o">, MetaVarName<"<path>">,
HelpText<"Path to file to write output">;
def rpath : Separate<["-"], "rpath">,
HelpText<"Add a DT_RUNPATH to the output">;
def shared : Flag<["-"], "shared">,
HelpText<"Build a shared object">;
def sysroot : Joined<["--"], "sysroot=">,
HelpText<"Set the system root">;
// 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. // Options listed below are silently ignored now.
def as_needed : Flag<["--"], "as-needed">; def as_needed : Flag<["--"], "as-needed">;