COFF: Show real command line options if /verbose is given.

llvm-svn: 246023
This commit is contained in:
Rui Ueyama 2015-08-26 07:12:08 +00:00
parent 44d9307293
commit 2caf407107
1 changed files with 9 additions and 0 deletions

View File

@ -562,6 +562,15 @@ llvm::opt::InputArgList ArgParser::parse(ArrayRef<const char *> ArgsArr) {
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) +