[lld] r262568 - Use StringRef member function instead of including StringExtras.h
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 16:51:22 PST 2016
Author: ruiu
Date: Wed Mar 2 18:51:21 2016
New Revision: 262568
URL: http://llvm.org/viewvc/llvm-project?rev=262568&view=rev
Log:
Use StringRef member function instead of including StringExtras.h
Modified:
lld/trunk/tools/lld/lld.cpp
Modified: lld/trunk/tools/lld/lld.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/tools/lld/lld.cpp?rev=262568&r1=262567&r2=262568&view=diff
==============================================================================
--- lld/trunk/tools/lld/lld.cpp (original)
+++ lld/trunk/tools/lld/lld.cpp Wed Mar 2 18:51:21 2016
@@ -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 Pr
// 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;
More information about the llvm-commits
mailing list