COFF: Show real command line options if /verbose is given.
llvm-svn: 246023
This commit is contained in:
parent
44d9307293
commit
2caf407107
|
@ -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) +
|
||||
|
|
Loading…
Reference in New Issue