summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StringSaver.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Support] Add a UniqueStringSaver: like StringSaver, but deduplicating.Sam McCall2018-07-231-0/+7
| | | | | | | | | | | | Summary: Clarify contract of StringSaver (it null-terminates, callers rely on it). Reviewers: hokein Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D49596 llvm-svn: 337677
* Use StringRef in StringSaver API (NFC)Mehdi Amini2016-10-051-2/+2
| | | | llvm-svn: 283290
* There is only one saver of strings.Rafael Espindola2015-08-131-1/+1
| | | | llvm-svn: 244854
* Bring in a BumpPtrStringSaver from lld and simplify the interface.Rafael Espindola2015-06-131-0/+19
StringSaver now always saves to a BumpPtrAllocator. The only reason for having the virtual saveImpl is so lld can have a thread safe version. The reason for the distinct BumpPtrStringSaver class is to avoid the virtual destructor. llvm-svn: 239669
OpenPOWER on IntegriCloud