LLVM 20.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) | |
BumpPtrAllocator & | getAllocator () const |
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.
|
inline |
Definition at line 27 of file StringSaver.h.
Referenced by llvm::cl::expandResponseFiles(), and llvm::cl::ExpandResponseFiles().
Definition at line 30 of file StringSaver.h.
References save().
Referenced by llvm::AArch64TargetLowering::AArch64TargetLowering(), addSection(), llvm::MCContext::allocateString(), ExpandBasePaths(), getSearchPaths(), llvm::codeview::LazyRandomTypeCollection::getTypeName(), llvm::codeview::TypeTableCollection::getTypeName(), llvm::libDriverMain(), llvm::jitlink::COFFDirectiveParser::parse(), save(), llvm::UniqueStringSaver::save(), llvm::ModuleSummaryIndex::saveString(), llvm::cl::TokenizeGNUCommandLine(), and tokenizeWindowsCommandLineImpl().
Definition at line 23 of file StringSaver.cpp.
References save(), and llvm::Twine::toStringRef().
Definition at line 15 of file StringSaver.cpp.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold, GrowthDelay >::Allocate(), llvm::StringRef::data(), llvm::StringRef::empty(), P, and llvm::StringRef::size().