LLVM: llvm::StringSaver Class Reference (original) (raw)

Saves strings in the provided stable storage and returns a StringRef with a stable character pointer. More...

#include "[llvm/Support/StringSaver.h](StringSaver%5F8h%5Fsource.html)"

Public Member Functions
StringSaver (BumpPtrAllocator &Alloc)
BumpPtrAllocator & getAllocator () const
StringRef save (const char *S)
LLVM_ABI StringRef save (StringRef S)
LLVM_ABI StringRef save (const Twine &S)
StringRef save (const std::string &S)

Detailed Description

Saves strings in the provided stable storage and returns a StringRef with a stable character pointer.

Definition at line 22 of file StringSaver.h.

Constructor & Destructor Documentation

Member Function Documentation

getAllocator()

save() [1/4]

save() [2/4]

save() [3/4]

save() [4/4]


The documentation for this class was generated from the following files: