gollvm: don't print arg0 in -v output
arg0 is the executable name, already printed. Otherwise it would
be printed twice as
/usr/bin/as /usr/bin/as --64 -o x.o x.s
Change-Id: Ib479d3771dea6591824543c8f0262e0b4b423e2e
Reviewed-on: https://go-review.googlesource.com/111896
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/driver/Command.cpp b/driver/Command.cpp
index b59977f..3f4fb81 100644
--- a/driver/Command.cpp
+++ b/driver/Command.cpp
@@ -45,9 +45,15 @@
{
os << " " << executable_;
const char *qu = (quoteArgs ? "\"" : "");
- for (auto arg : arguments_)
+ bool first = true;
+ for (auto arg : arguments_) {
+ if (first) {
+ first = false;
+ continue;
+ }
if (arg != nullptr)
os << " " << qu << arg << qu;
+ }
os << "\n";
}