[mach-o] wire up -t option

llvm-svn: 214414
This commit is contained in:
Nick Kledzik 2014-07-31 18:19:03 +00:00
parent e4f02eceea
commit 0f4fbf17f5
2 changed files with 6 additions and 0 deletions

View File

@ -288,6 +288,10 @@ bool DarwinLdDriver::parse(int argc, const char *argv[],
if (parsedArgs->getLastArg(OPT_print_atoms))
ctx.setPrintAtoms();
// Handle -t (trace) option.
if (parsedArgs->getLastArg(OPT_t))
ctx.setLogInputFiles(true);
// In -test_libresolution mode, we'll be given an explicit list of paths that
// exist. We'll also be expected to print out information about how we located
// libraries and so on that the user specified, but not to actually do any

View File

@ -94,6 +94,8 @@ def output : Separate<["-"], "o">, HelpText<"Output file path">;
def arch : Separate<["-"], "arch">, HelpText<"Architecture to link">;
def sectalign : MultiArg<["-"], "sectalign", 3>,
HelpText<"alignment for segment/section">;
def t : Flag<["-"], "t">,
HelpText<"Print the names of the input files as ld processes them">;
// extras