From 05a6333842df60049dfb16c3f212499ff00323cc Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 3 Mar 2016 00:51:21 +0000 Subject: [PATCH] Use StringRef member function instead of including StringExtras.h llvm-svn: 262568 --- lld/tools/lld/lld.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lld/tools/lld/lld.cpp b/lld/tools/lld/lld.cpp index bf9f2d8..41d90ec 100644 --- a/lld/tools/lld/lld.cpp +++ b/lld/tools/lld/lld.cpp @@ -18,7 +18,6 @@ #include "lld/Driver/Driver.h" #include "llvm/ADT/STLExtras.h" -#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/ManagedStatic.h" @@ -68,7 +67,7 @@ static Flavor parseProgname(StringRef Progname) { // Progname may be something like "lld-gnu". Parse it. SmallVector V; - SplitString(Progname, V, "-"); + Progname.split(V, "-"); for (StringRef S : V) if (Flavor F = getFlavor(S)) return F; -- 2.7.4