Eliminate dependency to formatv(). NFC.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@344212 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/COFF/DriverUtils.cpp b/COFF/DriverUtils.cpp
index 9bb8348..3a11895 100644
--- a/COFF/DriverUtils.cpp
+++ b/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 @@
}
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