LLVM
15.0.0git
|
Saves strings in the provided stable storage and returns a StringRef with a stable character pointer. More...
#include "llvm/Support/StringSaver.h"
Public Member Functions | |
StringSaver (BumpPtrAllocator &Alloc) | |
StringRef | save (const char *S) |
StringRef | save (StringRef S) |
StringRef | save (const Twine &S) |
StringRef | save (const std::string &S) |
Saves strings in the provided stable storage and returns a StringRef with a stable character pointer.
Definition at line 21 of file StringSaver.h.
|
inline |
Definition at line 25 of file StringSaver.h.
Definition at line 28 of file StringSaver.h.
Referenced by addSection(), ExpandBasePaths(), ExpandResponseFile(), getSearchPaths(), llvm::codeview::TypeTableCollection::getTypeName(), llvm::codeview::LazyRandomTypeCollection::getTypeName(), save(), llvm::UniqueStringSaver::save(), llvm::ModuleSummaryIndex::saveString(), llvm::cl::TokenizeGNUCommandLine(), and tokenizeWindowsCommandLineImpl().
Definition at line 13 of file StringSaver.cpp.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold, GrowthDelay >::Allocate(), memcpy(), P, and S.