summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-10-11 00:58:00 +0000
committerFangrui Song <maskray@google.com>2018-10-11 00:58:00 +0000
commita535e0543f44a4c453e8f96624dfe00b68b6568d (patch)
tree1175a40b2b305b46c06d1cd720bbc33b5ff84e13
parent7fa7e6a28463175981fee6320f0c261f9f7cc92e (diff)
downloadbcm5719-llvm-a535e0543f44a4c453e8f96624dfe00b68b6568d.tar.gz
bcm5719-llvm-a535e0543f44a4c453e8f96624dfe00b68b6568d.zip
Eliminate dependency to formatv(). NFC.
llvm-svn: 344212
-rw-r--r--lld/COFF/DriverUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/COFF/DriverUtils.cpp b/lld/COFF/DriverUtils.cpp
index 9bb834888c8..3a11895497a 100644
--- a/lld/COFF/DriverUtils.cpp
+++ b/lld/COFF/DriverUtils.cpp
@@ -28,7 +28,6 @@
#include "llvm/Option/Option.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileUtilities.h"
-#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Program.h"
@@ -864,8 +863,9 @@ std::vector<const char *> ArgParser::tokenize(StringRef S) {
}
void printHelp(const char *Argv0) {
- std::string Usage = formatv("{0} [options] file...", Argv0).str();
- COFFOptTable().PrintHelp(outs(), Usage.c_str(), "LLVM Linker", false);
+ COFFOptTable().PrintHelp(outs(),
+ (std::string(Argv0) + " [options] file...").c_str(),
+ "LLVM Linker", false);
}
} // namespace coff
OpenPOWER on IntegriCloud