diff options
| author | Nick Kledzik <kledzik@apple.com> | 2014-07-31 18:19:03 +0000 |
|---|---|---|
| committer | Nick Kledzik <kledzik@apple.com> | 2014-07-31 18:19:03 +0000 |
| commit | 0f4fbf17f57f4697cbda98f544920cfbcda22762 (patch) | |
| tree | f2d968c1f0784dcf4563cca763ea0a26f5f4ad78 | |
| parent | e4f02eceeae41c07a40408483e76e6723909250b (diff) | |
| download | bcm5719-llvm-0f4fbf17f57f4697cbda98f544920cfbcda22762.tar.gz bcm5719-llvm-0f4fbf17f57f4697cbda98f544920cfbcda22762.zip | |
[mach-o] wire up -t option
llvm-svn: 214414
| -rw-r--r-- | lld/lib/Driver/DarwinLdDriver.cpp | 4 | ||||
| -rw-r--r-- | lld/lib/Driver/DarwinLdOptions.td | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 45035cd48c3..6be9d847da0 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 45eaa88b695..cf5fcf129d8 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 |

