Use StringRef member function instead of including StringExtras.h

llvm-svn: 262568
This commit is contained in:
Rui Ueyama 2016-03-03 00:51:21 +00:00
parent 2a0641434a
commit 05a6333842
1 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@
#include "lld/Driver/Driver.h" #include "lld/Driver/Driver.h"
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h" #include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h" #include "llvm/ADT/Twine.h"
#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/ManagedStatic.h"
@ -68,7 +67,7 @@ static Flavor parseProgname(StringRef Progname) {
// Progname may be something like "lld-gnu". Parse it. // Progname may be something like "lld-gnu". Parse it.
SmallVector<StringRef, 3> V; SmallVector<StringRef, 3> V;
SplitString(Progname, V, "-"); Progname.split(V, "-");
for (StringRef S : V) for (StringRef S : V)
if (Flavor F = getFlavor(S)) if (Flavor F = getFlavor(S))
return F; return F;