diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-06 04:27:42 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-06 04:27:42 +0000 |
commit | e99bbd9ac3cc7ba2615c9b800a002e47c8e13991 (patch) | |
tree | b52345db3e4e67f68f2daf85d0af231d8579a744 /include/llvm/ADT/SmallString.h | |
parent | f9644867712c531427567ca4f936f507cd34f1b1 (diff) | |
download | external_llvm-e99bbd9ac3cc7ba2615c9b800a002e47c8e13991.zip external_llvm-e99bbd9ac3cc7ba2615c9b800a002e47c8e13991.tar.gz external_llvm-e99bbd9ac3cc7ba2615c9b800a002e47c8e13991.tar.bz2 |
Support/ADT: Move c_str() from SmallString to SmallVectorImpl. The Windows PathV2
implementation needs it for wchar_t and SmallVectorImpl in general.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallString.h')
-rw-r--r-- | include/llvm/ADT/SmallString.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/ADT/SmallString.h b/include/llvm/ADT/SmallString.h index 05bd8a4..7328560 100644 --- a/include/llvm/ADT/SmallString.h +++ b/include/llvm/ADT/SmallString.h @@ -41,12 +41,6 @@ public: // Implicit conversion to StringRef. operator StringRef() const { return str(); } - const char *c_str() { - this->push_back(0); - this->pop_back(); - return this->data(); - } - // Extra operators. const SmallString &operator=(StringRef RHS) { this->clear(); |