10 #ifndef LLVM_SUPPORT_STRINGSAVER_H
11 #define LLVM_SUPPORT_STRINGSAVER_H
const char * save(StringRef S)
const char * save(const Twine &S)
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)
Allocate memory in an ever growing pool, as if by bump-pointer.
const char * save(const char *S)
BumpPtrStringSaver(BumpPtrAllocator &Alloc)
Saves strings in the inheritor's stable storage and returns a stable raw character pointer...
const char * save(std::string &S)
virtual const char * saveImpl(StringRef S)
StringRef - Represent a constant reference to a string, i.e.