diff options
| author | Owen Anderson <resistor@mac.com> | 2008-07-01 23:49:59 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-07-01 23:49:59 +0000 |
| commit | d6df56b94f84c6840baf06985c8e7e56640e9c06 (patch) | |
| tree | 784ba87f8e823d2c4bce49917abdb0ea39a8889c /include | |
| parent | ac9639d279b57ccece43fa9742d78f0877b99e85 (diff) | |
| download | external_llvm-d6df56b94f84c6840baf06985c8e7e56640e9c06.zip external_llvm-d6df56b94f84c6840baf06985c8e7e56640e9c06.tar.gz external_llvm-d6df56b94f84c6840baf06985c8e7e56640e9c06.tar.bz2 | |
Add a version of AddString that takes a const char* so we can avoid extraneous
conversions to std::string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/ADT/FoldingSet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 5f541ae..cce1eec 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -220,6 +220,7 @@ public: void AddFloat(float F); void AddDouble(double D); void AddString(const std::string &String); + void AddString(const char* String); template <typename T> inline void Add(const T& x) { FoldingSetTrait<T>::Profile(x, *this); } |
