From: Nick Kledzik Date: Thu, 31 Jul 2014 18:19:03 +0000 (+0000) Subject: [mach-o] wire up -t option X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f4fbf17f57f4697cbda98f544920cfbcda22762;p=platform%2Fupstream%2Fllvm.git [mach-o] wire up -t option llvm-svn: 214414 --- diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 45035cd..6be9d84 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -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 diff --git a/lld/lib/Driver/DarwinLdOptions.td b/lld/lib/Driver/DarwinLdOptions.td index 45eaa88..cf5fcf1 100644 --- a/lld/lib/Driver/DarwinLdOptions.td +++ b/lld/lib/Driver/DarwinLdOptions.td @@ -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