10 #ifndef LLVM_SUPPORT_STRINGSAVER_H
11 #define LLVM_SUPPORT_STRINGSAVER_H
This file defines the MallocAllocator and BumpPtrAllocator interfaces.
std::string str() const
Return the twine contents as a std::string.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
StringSaver(BumpPtrAllocator &Alloc)
StringRef save(const Twine &S)
Allocate memory in an ever growing pool, as if by bump-pointer.
StringRef save(std::string &S)
StringRef save(const char *S)
Saves strings in the inheritor's stable storage and returns a StringRef with a stable character point...
StringRef - Represent a constant reference to a string, i.e.