Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lld/trunk/COFF/Options.td
Show All 15 Lines | multiclass B<string name, string help_on, string help_off> { | ||||
def _no : F<name#":no">, HelpText<help_off>; | def _no : F<name#":no">, HelpText<help_off>; | ||||
} | } | ||||
def align : P<"align", "Section alignment">; | def align : P<"align", "Section alignment">; | ||||
def aligncomm : P<"aligncomm", "Set common symbol alignment">; | def aligncomm : P<"aligncomm", "Set common symbol alignment">; | ||||
def alternatename : P<"alternatename", "Define weak alias">; | def alternatename : P<"alternatename", "Define weak alias">; | ||||
def base : P<"base", "Base address of the program">; | def base : P<"base", "Base address of the program">; | ||||
def color_diagnostics: Flag<["--"], "color-diagnostics">, | def color_diagnostics: Flag<["--"], "color-diagnostics">, | ||||
HelpText<"Use colors in diagnostics">; | HelpText<"Use colors in diagnostics">; | ||||
def color_diagnostics_eq: Joined<["--"], "color-diagnostics=">, | def color_diagnostics_eq: Joined<["--"], "color-diagnostics=">, | ||||
HelpText<"Use colors in diagnostics; one of 'always', 'never', 'auto'">; | HelpText<"Use colors in diagnostics; one of 'always', 'never', 'auto'">; | ||||
def defaultlib : P<"defaultlib", "Add the library to the list of input files">; | def defaultlib : P<"defaultlib", "Add the library to the list of input files">; | ||||
def delayload : P<"delayload", "Delay loaded DLL name">; | def delayload : P<"delayload", "Delay loaded DLL name">; | ||||
def entry : P<"entry", "Name of entry point symbol">; | def entry : P<"entry", "Name of entry point symbol">; | ||||
def errorlimit : P<"errorlimit", | def errorlimit : P<"errorlimit", | ||||
"Maximum number of errors to emit before stopping (0 = no limit)">; | "Maximum number of errors to emit before stopping (0 = no limit)">; | ||||
def export : P<"export", "Export a function">; | def export : P<"export", "Export a function">; | ||||
// No help text because /failifmismatch is not intended to be used by the user. | // No help text because /failifmismatch is not intended to be used by the user. | ||||
def failifmismatch : P<"failifmismatch", "">; | def failifmismatch : P<"failifmismatch", "">; | ||||
def filealign : P<"filealign", "Section alignment in the output file">; | def filealign : P<"filealign", "Section alignment in the output file">; | ||||
def functionpadmin : F<"functionpadmin">; | def functionpadmin : F<"functionpadmin">; | ||||
def functionpadmin_opt : P<"functionpadmin", "Prepares an image for hotpatching">; | def functionpadmin_opt : P<"functionpadmin", | ||||
"Prepares an image for hotpatching">; | |||||
def guard : P<"guard", "Control flow guard">; | def guard : P<"guard", "Control flow guard">; | ||||
def heap : P<"heap", "Size of the heap">; | def heap : P<"heap", "Size of the heap">; | ||||
def ignore : P<"ignore", "Specify warning codes to ignore">; | def ignore : P<"ignore", "Specify warning codes to ignore">; | ||||
def implib : P<"implib", "Import library name">; | def implib : P<"implib", "Import library name">; | ||||
def lib : F<"lib">, | def lib : F<"lib">, | ||||
HelpText<"Act like lib.exe; must be first argument if present">; | HelpText<"Act like lib.exe; must be first argument if present">; | ||||
def libpath : P<"libpath", "Additional library search path">; | def libpath : P<"libpath", "Additional library search path">; | ||||
def linkrepro : P<"linkrepro", "Dump linker invocation and input files for debugging">; | def linkrepro : P<"linkrepro", | ||||
"Dump linker invocation and input files for debugging">; | |||||
def lldignoreenv : F<"lldignoreenv">, | def lldignoreenv : F<"lldignoreenv">, | ||||
HelpText<"Ignore environment variables like %LIB%">; | HelpText<"Ignore environment variables like %LIB%">; | ||||
def lldltocache : P<"lldltocache", "Path to ThinLTO cached object file directory">; | def lldltocache : P<"lldltocache", | ||||
def lldltocachepolicy : P<"lldltocachepolicy", "Pruning policy for the ThinLTO cache">; | "Path to ThinLTO cached object file directory">; | ||||
def lldltocachepolicy : P<"lldltocachepolicy", | |||||
"Pruning policy for the ThinLTO cache">; | |||||
def lldsavetemps : F<"lldsavetemps">, | def lldsavetemps : F<"lldsavetemps">, | ||||
HelpText<"Save temporary files instead of deleting them">; | HelpText<"Save temporary files instead of deleting them">; | ||||
def machine : P<"machine", "Specify target platform">; | def machine : P<"machine", "Specify target platform">; | ||||
def merge : P<"merge", "Combine sections">; | def merge : P<"merge", "Combine sections">; | ||||
def mllvm : P<"mllvm", "Options to pass to LLVM">; | def mllvm : P<"mllvm", "Options to pass to LLVM">; | ||||
def nodefaultlib : P<"nodefaultlib", "Remove a default library">; | def nodefaultlib : P<"nodefaultlib", "Remove a default library">; | ||||
def opt : P<"opt", "Control optimizations">; | def opt : P<"opt", "Control optimizations">; | ||||
def order : P<"order", "Put functions in order">; | def order : P<"order", "Put functions in order">; | ||||
def out : P<"out", "Path to file to write output">; | def out : P<"out", "Path to file to write output">; | ||||
def natvis : P<"natvis", "Path to natvis file to embed in the PDB">; | def natvis : P<"natvis", "Path to natvis file to embed in the PDB">; | ||||
def no_color_diagnostics: F<"no-color-diagnostics">, | def no_color_diagnostics: F<"no-color-diagnostics">, | ||||
HelpText<"Do not use colors in diagnostics">; | HelpText<"Do not use colors in diagnostics">; | ||||
def pdb : P<"pdb", "PDB file path">; | def pdb : P<"pdb", "PDB file path">; | ||||
def pdbaltpath : P<"pdbaltpath", "PDB file path to embed in the image">; | def pdbaltpath : P<"pdbaltpath", "PDB file path to embed in the image">; | ||||
def section : P<"section", "Specify section attributes">; | def section : P<"section", "Specify section attributes">; | ||||
def stack : P<"stack", "Size of the stack">; | def stack : P<"stack", "Size of the stack">; | ||||
def stub : P<"stub", "Specify DOS stub file">; | def stub : P<"stub", "Specify DOS stub file">; | ||||
def subsystem : P<"subsystem", "Specify subsystem">; | def subsystem : P<"subsystem", "Specify subsystem">; | ||||
def timestamp : P<"timestamp", "Specify the PE header timestamp">; | def timestamp : P<"timestamp", "Specify the PE header timestamp">; | ||||
def version : P<"version", "Specify a version number in the PE header">; | def version : P<"version", "Specify a version number in the PE header">; | ||||
def wholearchive_file : P<"wholearchive", "Include all object files from this archive">; | def wholearchive_file : P<"wholearchive", | ||||
"Include all object files from this library">; | |||||
def disallowlib : Joined<["/", "-", "/?", "-?"], "disallowlib:">, | def disallowlib : Joined<["/", "-", "/?", "-?"], "disallowlib:">, | ||||
Alias<nodefaultlib>; | Alias<nodefaultlib>; | ||||
def manifest : F<"manifest">, HelpText<"Create .manifest file">; | def manifest : F<"manifest">, HelpText<"Create .manifest file">; | ||||
def manifest_colon : P< | def manifest_colon : P< | ||||
"manifest", | "manifest", | ||||
"NO disables manifest output; EMBED[,ID=#] embeds manifest as resource in the image">; | "NO disables manifest output; EMBED[,ID=#] embeds manifest as resource in the image">; | ||||
Show All 30 Lines | def repro : F<"Brepro">, | ||||
HelpText<"Use a hash of the executable as the PE header timestamp">; | HelpText<"Use a hash of the executable as the PE header timestamp">; | ||||
def swaprun : P<"swaprun", | def swaprun : P<"swaprun", | ||||
"Comma-separated list of 'cd' or 'net'">; | "Comma-separated list of 'cd' or 'net'">; | ||||
def swaprun_cd : F<"swaprun:cd">, Alias<swaprun>, AliasArgs<["cd"]>, | def swaprun_cd : F<"swaprun:cd">, Alias<swaprun>, AliasArgs<["cd"]>, | ||||
HelpText<"Make loader run output binary from swap instead of from CD">; | HelpText<"Make loader run output binary from swap instead of from CD">; | ||||
def swaprun_net : F<"swaprun:net">, Alias<swaprun>, AliasArgs<["net"]>, | def swaprun_net : F<"swaprun:net">, Alias<swaprun>, AliasArgs<["net"]>, | ||||
HelpText<"Make loader run output binary from swap instead of from network">; | HelpText<"Make loader run output binary from swap instead of from network">; | ||||
def verbose : F<"verbose">; | def verbose : F<"verbose">; | ||||
def wholearchive_flag : F<"wholearchive">; | def wholearchive_flag : F<"wholearchive">, | ||||
HelpText<"Include all object files from all libraries">; | |||||
def force : F<"force">, | def force : F<"force">, | ||||
HelpText<"Allow undefined and multiply defined symbols when creating executables">; | HelpText<"Allow undefined and multiply defined symbols">; | ||||
def force_unresolved : F<"force:unresolved">, | def force_unresolved : F<"force:unresolved">, | ||||
HelpText<"Allow undefined symbols when creating executables">; | HelpText<"Allow undefined symbols when creating executables">; | ||||
def force_multiple : F<"force:multiple">, | def force_multiple : F<"force:multiple">, | ||||
HelpText<"Allow multiply defined symbols when creating executables">; | HelpText<"Allow multiply defined symbols when creating executables">; | ||||
def force_multipleres : F<"force:multipleres">, | def force_multipleres : F<"force:multipleres">, | ||||
HelpText<"Allow multiply defined resources when creating executables">; | HelpText<"Allow multiply defined resources when creating executables">; | ||||
defm WX : B<"WX", "Treat warnings as errors", "Don't treat warnings as errors">; | defm WX : B<"WX", "Treat warnings as errors", "Don't treat warnings as errors">; | ||||
Show All 31 Lines | |||||
def help : F<"help">; | def help : F<"help">; | ||||
// /?? and -?? must be before /? and -? to not confuse lib/Options. | // /?? and -?? must be before /? and -? to not confuse lib/Options. | ||||
def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>; | def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>; | ||||
// LLD extensions | // LLD extensions | ||||
def end_lib : F<"end-lib">, | def end_lib : F<"end-lib">, | ||||
HelpText<"End a grouping of objects that should be treated as if they were together in an archive">; | HelpText<"Ends group of objects treated as if they were in a library">; | ||||
def exclude_all_symbols : F<"exclude-all-symbols">; | def exclude_all_symbols : F<"exclude-all-symbols">; | ||||
def export_all_symbols : F<"export-all-symbols">; | def export_all_symbols : F<"export-all-symbols">; | ||||
defm demangle : B<"demangle", | defm demangle : B<"demangle", | ||||
"Demangle symbols in output (default)", | "Demangle symbols in output (default)", | ||||
"Do not demangle symbols in output">; | "Do not demangle symbols in output">; | ||||
def include_optional : Joined<["/", "-", "/?", "-?"], "includeoptional:">, | def include_optional : Joined<["/", "-", "/?", "-?"], "includeoptional:">, | ||||
HelpText<"Add symbol as undefined, but allow it to remain undefined">; | HelpText<"Add symbol as undefined, but allow it to remain undefined">; | ||||
def kill_at : F<"kill-at">; | def kill_at : F<"kill-at">; | ||||
def lldmingw : F<"lldmingw">; | def lldmingw : F<"lldmingw">; | ||||
def output_def : Joined<["/", "-", "/?", "-?"], "output-def:">; | def output_def : Joined<["/", "-", "/?", "-?"], "output-def:">; | ||||
def pdb_source_path : P<"pdbsourcepath", | def pdb_source_path : P<"pdbsourcepath", | ||||
"Base path used to make relative source file path absolute in PDB">; | "Base path used to make relative source file path absolute in PDB">; | ||||
def rsp_quoting : Joined<["--"], "rsp-quoting=">, | def rsp_quoting : Joined<["--"], "rsp-quoting=">, | ||||
HelpText<"Quoting style for response files, 'windows' (default) or 'posix'">; | HelpText<"Quoting style for response files, 'windows' (default) or 'posix'">; | ||||
def start_lib : F<"start-lib">, | def start_lib : F<"start-lib">, | ||||
HelpText<"Start a grouping of objects that should be treated as if they were together in an archive">; | HelpText<"Starts group of objects treated as if they were in a library">; | ||||
def thinlto_emit_imports_files : | def thinlto_emit_imports_files : | ||||
F<"thinlto-emit-imports-files">, | F<"thinlto-emit-imports-files">, | ||||
HelpText<"Emit .imports files with -thinlto-index-only">; | HelpText<"Emit .imports files with -thinlto-index-only">; | ||||
def thinlto_index_only : | def thinlto_index_only : | ||||
F<"thinlto-index-only">, | F<"thinlto-index-only">, | ||||
HelpText<"Instead of linking, emit ThinLTO index files">; | HelpText<"Instead of linking, emit ThinLTO index files">; | ||||
def thinlto_index_only_arg : P< | def thinlto_index_only_arg : P< | ||||
"thinlto-index-only", | "thinlto-index-only", | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |