diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-19 20:07:03 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-19 20:07:03 +0000 |
commit | dddfd34e32ff081409e5a1c95b991a898d63dff2 (patch) | |
tree | 99d6f0c6d2175cc7283589471be5ea11840cbbea /include/llvm/ADT/SmallString.h | |
parent | 9472a9d6502f943548981955ff36ae6b3c05638b (diff) | |
download | llvm-dddfd34e32ff081409e5a1c95b991a898d63dff2.tar.gz llvm-dddfd34e32ff081409e5a1c95b991a898d63dff2.tar.bz2 llvm-dddfd34e32ff081409e5a1c95b991a898d63dff2.tar.xz |
Switch to SmallString::str from SmallString::c_str, and remove
SmallString::c_str.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallString.h')
-rw-r--r-- | include/llvm/ADT/SmallString.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/llvm/ADT/SmallString.h b/include/llvm/ADT/SmallString.h index fe97807d24..852c32cec9 100644 --- a/include/llvm/ADT/SmallString.h +++ b/include/llvm/ADT/SmallString.h @@ -38,14 +38,6 @@ public: // Extra methods. - const char *c_str() const { - SmallString *This = const_cast<SmallString*>(this); - // Ensure that there is a \0 at the end of the string. - This->reserve(this->size()+1); - This->End[0] = 0; - return this->begin(); - } - StringRef str() const { return StringRef(this->begin(), this->size()); } // Extra operators. |