[lld] r214414 - [mach-o] wire up -t option

Nick Kledzik kledzik at apple.com
Thu Jul 31 11:19:03 PDT 2014


Author: kledzik
Date: Thu Jul 31 13:19:03 2014
New Revision: 214414

URL: http://llvm.org/viewvc/llvm-project?rev=214414&view=rev
Log:
[mach-o] wire up -t option

Modified:
    lld/trunk/lib/Driver/DarwinLdDriver.cpp
    lld/trunk/lib/Driver/DarwinLdOptions.td

Modified: lld/trunk/lib/Driver/DarwinLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdDriver.cpp?rev=214414&r1=214413&r2=214414&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/DarwinLdDriver.cpp Thu Jul 31 13:19:03 2014
@@ -288,6 +288,10 @@ bool DarwinLdDriver::parse(int argc, con
   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

Modified: lld/trunk/lib/Driver/DarwinLdOptions.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdOptions.td?rev=214414&r1=214413&r2=214414&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdOptions.td (original)
+++ lld/trunk/lib/Driver/DarwinLdOptions.td Thu Jul 31 13:19:03 2014
@@ -94,6 +94,8 @@ def output : Separate<["-"], "o">, HelpT
 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





More information about the llvm-commits mailing list