mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 14:06:36 +00:00
Turns out llvm-gcc still uses SplitString with a vector. Add it back until I
have a fix. llvm-svn: 93163
This commit is contained in:
parent
cdbc36f961
commit
7ec2a31f14
@ -20,6 +20,7 @@
|
||||
#include <cctype>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
template<typename T> class SmallVectorImpl;
|
||||
@ -217,6 +218,11 @@ void SplitString(StringRef Source,
|
||||
SmallVectorImpl<StringRef> &OutFragments,
|
||||
StringRef Delimiters = " \t\n\v\f\r");
|
||||
|
||||
// FIXME: remove when llvm-gcc doesn't use this anymore
|
||||
void SplitString(StringRef Source,
|
||||
std::vector<std::string> &OutFragments,
|
||||
StringRef Delimiters = " \t\n\v\f\r");
|
||||
|
||||
/// HashString - Hash funtion for strings.
|
||||
///
|
||||
/// This is the Bernstein hash function.
|
||||
|
@ -48,6 +48,18 @@ void llvm::SplitString(StringRef Source,
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: remove when llvm-gcc doesn't use this anymore
|
||||
void llvm::SplitString(StringRef Source,
|
||||
std::vector<std::string> &OutFragments,
|
||||
StringRef Delimiters) {
|
||||
StringRef S2, S;
|
||||
tie(S2, S) = getToken(Source, Delimiters);
|
||||
while (!S2.empty()) {
|
||||
OutFragments.push_back(S2);
|
||||
tie(S2, S) = getToken(S, Delimiters);
|
||||
}
|
||||
}
|
||||
|
||||
void llvm::StringRef::split(SmallVectorImpl<StringRef> &A,
|
||||
StringRef Separators, int MaxSplit,
|
||||
bool KeepEmpty) const {
|
||||
|
Loading…
Reference in New Issue
Block a user