mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Turns out llvm-gcc still uses SplitString with a vector. Add it back until I
have a fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user