aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-11 18:44:35 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-11 18:44:35 +0000
commitc30837d6c1ee814ba62e32848e1d2cbfb7385953 (patch)
tree2d62bd7bcd7b73b7a91756c6b52b1ed35edf6f5c /lib/Support
parentd4f195999a7774611e5f9e457a86f14d5e257324 (diff)
downloadexternal_llvm-c30837d6c1ee814ba62e32848e1d2cbfb7385953.zip
external_llvm-c30837d6c1ee814ba62e32848e1d2cbfb7385953.tar.gz
external_llvm-c30837d6c1ee814ba62e32848e1d2cbfb7385953.tar.bz2
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
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/StringExtras.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Support/StringExtras.cpp b/lib/Support/StringExtras.cpp
index 65b41d5..2363ad6 100644
--- a/lib/Support/StringExtras.cpp
+++ b/lib/Support/StringExtras.cpp
@@ -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 {