LLVM
8.0.1
|
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 22 of file StringSaver.h.
|
inline |
Definition at line 26 of file StringSaver.h.
Definition at line 29 of file StringSaver.h.
References save().
Referenced by ExpandResponseFile(), getSearchPaths(), llvm::codeview::TypeTableCollection::getTypeName(), llvm::codeview::LazyRandomTypeCollection::getTypeName(), llvm::cl::ParseEnvironmentOptions(), save(), llvm::UniqueStringSaver::save(), llvm::ModuleSummaryIndex::saveString(), llvm::cl::TokenizeGNUCommandLine(), and llvm::cl::TokenizeWindowsCommandLine().
Definition at line 14 of file StringSaver.cpp.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), llvm::StringRef::data(), llvm::StringRef::empty(), llvm::Intrinsic::memcpy, P, and llvm::StringRef::size().
Definition at line 31 of file StringSaver.h.
References save(), and llvm::Twine::str().
Referenced by save().