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 | 768e97ddbde973fa68b12aecc0e0935e7f37dc2c (patch) | |
tree | 99d6f0c6d2175cc7283589471be5ea11840cbbea /include/llvm/ADT | |
parent | a18cd86da7194d6b437ee9e5add49f4e761968b1 (diff) | |
download | external_llvm-768e97ddbde973fa68b12aecc0e0935e7f37dc2c.zip external_llvm-768e97ddbde973fa68b12aecc0e0935e7f37dc2c.tar.gz external_llvm-768e97ddbde973fa68b12aecc0e0935e7f37dc2c.tar.bz2 |
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')
-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 fe97807..852c32c 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. |