llvm.org GIT mirror llvm / c30837d
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 Benjamin Kramer 10 years ago
2 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1919 #include
2020 #include
2121 #include
22 #include
2223
2324 namespace llvm {
2425 template class SmallVectorImpl;
216217 SmallVectorImpl &OutFragments,
217218 StringRef Delimiters = " \t\n\v\f\r");
218219
220 // FIXME: remove when llvm-gcc doesn't use this anymore
221 void SplitString(StringRef Source,
222 std::vector &OutFragments,
223 StringRef Delimiters = " \t\n\v\f\r");
224
219225 /// HashString - Hash funtion for strings.
220226 ///
221227 /// This is the Bernstein hash function.
4747 }
4848 }
4949
50 // FIXME: remove when llvm-gcc doesn't use this anymore
51 void llvm::SplitString(StringRef Source,
52 std::vector &OutFragments,
53 StringRef Delimiters) {
54 StringRef S2, S;
55 tie(S2, S) = getToken(Source, Delimiters);
56 while (!S2.empty()) {
57 OutFragments.push_back(S2);
58 tie(S2, S) = getToken(S, Delimiters);
59 }
60 }
61
5062 void llvm::StringRef::split(SmallVectorImpl &A,
5163 StringRef Separators, int MaxSplit,
5264 bool KeepEmpty) const {