projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a06414
)
Use StringRef member function instead of including StringExtras.h
author
Rui Ueyama
<ruiu@google.com>
Thu, 3 Mar 2016 00:51:21 +0000
(
00:51
+0000)
committer
Rui Ueyama
<ruiu@google.com>
Thu, 3 Mar 2016 00:51:21 +0000
(
00:51
+0000)
llvm-svn: 262568
lld/tools/lld/lld.cpp
patch
|
blob
|
history
diff --git
a/lld/tools/lld/lld.cpp
b/lld/tools/lld/lld.cpp
index
bf9f2d8
..
41d90ec
100644
(file)
--- 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<StringRef, 3> V;
-
SplitString(Progname,
V, "-");
+
Progname.split(
V, "-");
for (StringRef S : V)
if (Flavor F = getFlavor(S))
return F;