From 98b28a1eaa3ff788350303bac21d8cea046c542b Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 3 Dec 2013 02:21:52 +0000 Subject: [PATCH] [PECOFF] Print input file names if /verbose is specified. llvm-svn: 196196 --- lld/lib/Driver/WinLinkDriver.cpp | 4 ++++ lld/lib/Driver/WinLinkOptions.td | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp index d49663b5c243..c9d113031f55 100644 --- a/lld/lib/Driver/WinLinkDriver.cpp +++ b/lld/lib/Driver/WinLinkDriver.cpp @@ -808,6 +808,10 @@ WinLinkDriver::parse(int argc, const char *argv[], PECOFFLinkingContext &ctx, ctx.setDeadStripping(false); break; + case OPT_verbose: + ctx.setLogInputFiles(true); + break; + case OPT_force: case OPT_force_unresolved: // /force and /force:unresolved mean the same thing. We do not currently diff --git a/lld/lib/Driver/WinLinkOptions.td b/lld/lib/Driver/WinLinkOptions.td index 8e9f5b21d2c2..af26ae044b40 100644 --- a/lld/lib/Driver/WinLinkOptions.td +++ b/lld/lib/Driver/WinLinkOptions.td @@ -52,7 +52,7 @@ def incl_c : Separate<["/", "-"], "include">, Alias; def nodefaultlib_all : F<"nodefaultlib">; def noentry : F<"noentry">; def dll : F<"dll">; - +def verbose : F<"verbose">; def debug : F<"debug">; def swaprun_cd : F<"swaprun:cd">; def swaprun_net : F<"swaprun:net">; @@ -94,7 +94,6 @@ def ignoreidl : F<"ignoreidl">; def incremental : F<"incremental">; def no_incremental : F<"incremental:no">; def nologo : F<"nologo">; -def verbose : F<"verbose">; def delay : QF<"delay">; def delayload : QF<"delayload">;