[lld] r246023 - COFF: Show real command line options if /verbose is given.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 00:12:09 PDT 2015
Author: ruiu
Date: Wed Aug 26 02:12:08 2015
New Revision: 246023
URL: http://llvm.org/viewvc/llvm-project?rev=246023&view=rev
Log:
COFF: Show real command line options if /verbose is given.
Modified:
lld/trunk/COFF/DriverUtils.cpp
Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=246023&r1=246022&r2=246023&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Wed Aug 26 02:12:08 2015
@@ -562,6 +562,15 @@ llvm::opt::InputArgList ArgParser::parse
unsigned MissingCount;
llvm::opt::InputArgList Args =
Table.ParseArgs(Argv, MissingIndex, MissingCount);
+
+ // Print the real command line if response files are expanded.
+ if (Args.hasArg(OPT_verbose) && ArgsArr.size() != Argv.size()) {
+ llvm::outs() << "Command line:";
+ for (const char *S : Argv)
+ llvm::outs() << " " << S;
+ llvm::outs() << "\n";
+ }
+
if (MissingCount)
error(Twine("missing arg value for \"") + Args.getArgString(MissingIndex) +
"\", expected " + Twine(MissingCount) +
More information about the llvm-commits
mailing list