diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-11 18:44:35 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-11 18:44:35 +0000 |
commit | c30837d6c1ee814ba62e32848e1d2cbfb7385953 (patch) | |
tree | 2d62bd7bcd7b73b7a91756c6b52b1ed35edf6f5c /include/llvm/ADT/StringExtras.h | |
parent | d4f195999a7774611e5f9e457a86f14d5e257324 (diff) | |
download | external_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 'include/llvm/ADT/StringExtras.h')
-rw-r--r-- | include/llvm/ADT/StringExtras.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index f58fe8e..2f5c39c 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -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. |