[lld] r344212 - Eliminate dependency to formatv(). NFC.

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 10 17:58:00 PDT 2018


Author: maskray
Date: Wed Oct 10 17:58:00 2018
New Revision: 344212

URL: http://llvm.org/viewvc/llvm-project?rev=344212&view=rev
Log:
Eliminate dependency to formatv(). NFC.

Modified:
    lld/trunk/COFF/DriverUtils.cpp

Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=344212&r1=344211&r2=344212&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Wed Oct 10 17:58:00 2018
@@ -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::tok
 }
 
 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




More information about the llvm-commits mailing list