LLVM  8.0.1
Public Member Functions | List of all members
llvm::StringSaver Class Referencefinal

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)
 

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

◆ StringSaver()

llvm::StringSaver::StringSaver ( BumpPtrAllocator Alloc)
inline

Definition at line 26 of file StringSaver.h.

Member Function Documentation

◆ save() [1/4]

StringRef llvm::StringSaver::save ( const char S)
inline

◆ save() [2/4]

StringRef StringSaver::save ( StringRef  S)

◆ save() [3/4]

StringRef llvm::StringSaver::save ( const Twine S)
inline

Definition at line 31 of file StringSaver.h.

References save(), and llvm::Twine::str().

Referenced by save().

◆ save() [4/4]

StringRef llvm::StringSaver::save ( const std::string &  S)
inline

Definition at line 32 of file StringSaver.h.

References save().

Referenced by save().


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