diff options
author | Rui Ueyama <ruiu@google.com> | 2015-08-26 07:12:08 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-08-26 07:12:08 +0000 |
commit | 2caf40710728564b011872393f86e28c89bf4e7d (patch) | |
tree | cb74728d702a9ede1d1ee303cfeb262253cf5226 | |
parent | 44d930729302bebf4888d530a6e1bbd4e1ed6931 (diff) | |
download | bcm5719-llvm-2caf40710728564b011872393f86e28c89bf4e7d.tar.gz bcm5719-llvm-2caf40710728564b011872393f86e28c89bf4e7d.zip |
COFF: Show real command line options if /verbose is given.
llvm-svn: 246023
-rw-r--r-- | lld/COFF/DriverUtils.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lld/COFF/DriverUtils.cpp b/lld/COFF/DriverUtils.cpp index ec5e919d1b2..1ba0d8c58b4 100644 --- a/lld/COFF/DriverUtils.cpp +++ b/lld/COFF/DriverUtils.cpp @@ -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) + |