mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
f78666fc01
For lld, pass in Config->Timestamp (which is set based on lld's /timestamp: and /Brepro flags). Since the writeWindowsResourceCOFF() data is only used in-memory by LLD and the obj's timestamp isn't used for anything in the output, this doesn't change behavior. For llvm-cvtres, add an optional /timestamp: parameter, and use the current behavior of calling time() if the parameter is not passed in. This doesn't really change observable behavior (unless someone passes /timestamp: to llvm-cvtres, which wasn't possible before), but it removes the last unqualified call to time() from llvm/lib, which seems like a good thing. Differential Revision: https://reviews.llvm.org/D63116 llvm-svn: 363050
20 lines
856 B
TableGen
20 lines
856 B
TableGen
include "llvm/Option/OptParser.td"
|
|
|
|
// All the switches can be preceded by either '/' or '-'.
|
|
|
|
def DEFINE : Joined<["/", "-"], "DEFINE:">, HelpText<"">, MetaVarName<"symbol">;
|
|
def FOLDDUPS : Flag<["/", "-"], "FOLDDUPS:">, HelpText<"">;
|
|
def MACHINE : Joined<["/", "-"], "MACHINE:">, HelpText<"">, MetaVarName<"{ARM|ARM64|EBC|IA64|X64|X86}">;
|
|
def NOLOGO : Flag<["/", "-"], "NOLOGO">, HelpText<"">;
|
|
def OUT : Joined<["/", "-"], "OUT:">, HelpText<"">, MetaVarName<"filename">;
|
|
def READONLY : Flag<["/", "-"], "READONLY">, HelpText<"">;
|
|
def VERBOSE : Flag<["/", "-"], "VERBOSE">, HelpText<"">;
|
|
def HELP : Flag<["/", "-"], "HELP">;
|
|
def H : Flag<["/", "-"], "H">, Alias<HELP>;
|
|
def HELP_Q : Flag<["/?", "-?"], "">, Alias<HELP>;
|
|
|
|
// Extensions.
|
|
|
|
def TIMESTAMP : Joined<["/", "-"], "TIMESTAMP:">,
|
|
HelpText<"Timestamp for coff header, defaults to current time">;
|