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

Saves strings in the inheritor's 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 inheritor's stable storage and returns a StringRef with a stable character pointer.

Definition at line 21 of file StringSaver.h.

Constructor & Destructor Documentation

◆ StringSaver()

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

Definition at line 25 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 28 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 29 of file StringSaver.h.

References save().

Referenced by save().


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