summaryrefslogtreecommitdiffstats
path: root/lld/lib
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-10-10 20:29:29 +0000
committerRui Ueyama <ruiu@google.com>2018-10-10 20:29:29 +0000
commit9ae88c64fa6ee582578c4a018cf92ada6a8bb08d (patch)
treed10d32a4f661472701590218c6873ef218eee4db /lld/lib
parent7e30c91dca5f92c6767cb292eb0262b99b94f553 (diff)
downloadbcm5719-llvm-9ae88c64fa6ee582578c4a018cf92ada6a8bb08d.tar.gz
bcm5719-llvm-9ae88c64fa6ee582578c4a018cf92ada6a8bb08d.zip
Eliminate dependency to formatv(). NFC.
llvm-svn: 344177
Diffstat (limited to 'lld/lib')
-rw-r--r--lld/lib/Driver/DarwinLdDriver.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp
index 7521d6e57a2..bbac230df45 100644
--- a/lld/lib/Driver/DarwinLdDriver.cpp
+++ b/lld/lib/Driver/DarwinLdDriver.cpp
@@ -44,7 +44,6 @@
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/Format.h"
-#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
@@ -384,9 +383,9 @@ bool parse(llvm::ArrayRef<const char *> args, MachOLinkingContext &ctx) {
!parsedArgs.getLastArg(OPT_test_file_usage)) {
// If no -arch and no options at all, print usage message.
if (parsedArgs.size() == 0) {
- std::string Usage =
- llvm::formatv("{0} [options] file...", args[0]).str();
- table.PrintHelp(llvm::outs(), Usage.c_str(), "LLVM Linker", false);
+ table.PrintHelp(llvm::outs(),
+ (std::string(args[0]) + " [options] file...").c_str(),
+ "LLVM Linker", false);
} else {
error("-arch not specified and could not be inferred");
}
OpenPOWER on IntegriCloud