LLVM  4.0.0
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::MDString Class Reference

A single uniqued string. More...

#include <Metadata.h>

Inheritance diagram for llvm::MDString:
[legend]
Collaboration diagram for llvm::MDString:
[legend]

Public Types

typedef StringRef::iterator iterator
 

Public Member Functions

 MDString (const MDString &)=delete
 
MDStringoperator= (MDString &&)=delete
 
MDStringoperator= (const MDString &)=delete
 
StringRef getString () const
 
unsigned getLength () const
 
iterator begin () const
 Pointer to the first byte of the string. More...
 
iterator end () const
 Pointer to one byte past the end of the string. More...
 
const unsigned char * bytes_begin () const
 
const unsigned char * bytes_end () const
 

Static Public Member Functions

static MDStringget (LLVMContext &Context, StringRef Str)
 
static MDStringget (LLVMContext &Context, const char *Str)
 
static bool classof (const Metadata *MD)
 Methods for support type inquiry through isa, cast, and dyn_cast. More...
 

Friends

class StringMapEntry< MDString >
 

Additional Inherited Members

 Active type of storage. More...

Detailed Description

A single uniqued string.

These are used to efficiently contain a byte sequence for metadata. MDString is always unnamed.

Definition at line 586 of file Metadata.h.

Member Typedef Documentation

Definition at line 606 of file Metadata.h.

Constructor & Destructor Documentation

llvm::MDString::MDString ( const MDString )
delete

Member Function Documentation

iterator llvm::MDString::begin ( ) const
inline

Pointer to the first byte of the string.

Definition at line 609 of file Metadata.h.

References llvm::StringRef::begin(), and getString().

const unsigned char* llvm::MDString::bytes_begin ( ) const
inline

Definition at line 614 of file Metadata.h.

References llvm::StringRef::bytes_begin(), and getString().

const unsigned char* llvm::MDString::bytes_end ( ) const
inline

Definition at line 615 of file Metadata.h.

References llvm::StringRef::bytes_end(), and getString().

static bool llvm::MDString::classof ( const Metadata MD)
inlinestatic

Methods for support type inquiry through isa, cast, and dyn_cast.

Definition at line 618 of file Metadata.h.

References llvm::Metadata::getMetadataID().

iterator llvm::MDString::end ( ) const
inline

Pointer to one byte past the end of the string.

Definition at line 612 of file Metadata.h.

References llvm::StringRef::end(), and getString().

MDString * MDString::get ( LLVMContext Context,
StringRef  Str 
)
static
static MDString* llvm::MDString::get ( LLVMContext Context,
const char *  Str 
)
inlinestatic

Definition at line 598 of file Metadata.h.

References Context.

unsigned llvm::MDString::getLength ( ) const
inline

Definition at line 604 of file Metadata.h.

References getString(), and llvm::StringRef::size().

StringRef MDString::getString ( ) const
MDString& llvm::MDString::operator= ( MDString &&  )
delete
MDString& llvm::MDString::operator= ( const MDString )
delete

Friends And Related Function Documentation

friend class StringMapEntry< MDString >
friend

Definition at line 587 of file Metadata.h.


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