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

A single uniqued string. More...

#include "llvm/IR/Metadata.h"

Inheritance diagram for llvm::MDString:
Inheritance graph
Collaboration diagram for llvm::MDString:
Collaboration graph

Public Types

using iterator = StringRef::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 charbytes_begin () const
const unsigned charbytes_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...


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 602 of file Metadata.h.

Member Typedef Documentation

◆ iterator

Definition at line 623 of file Metadata.h.

Constructor & Destructor Documentation

◆ MDString()

llvm::MDString::MDString ( const MDString )

Member Function Documentation

◆ begin()

iterator llvm::MDString::begin ( ) const

Pointer to the first byte of the string.

Definition at line 626 of file Metadata.h.

References llvm::StringRef::begin().

◆ bytes_begin()

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

Definition at line 631 of file Metadata.h.

References llvm::StringRef::bytes_begin().

◆ bytes_end()

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

Definition at line 632 of file Metadata.h.

References llvm::StringRef::bytes_end().

◆ classof()

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

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

Definition at line 635 of file Metadata.h.

References llvm::Metadata::getMetadataID().

◆ end()

iterator llvm::MDString::end ( ) const

Pointer to one byte past the end of the string.

Definition at line 629 of file Metadata.h.

References llvm::StringRef::end().

◆ get() [1/2]

MDString * MDString::get ( LLVMContext Context,
StringRef  Str 

◆ get() [2/2]

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

Definition at line 615 of file Metadata.h.

References Context.

◆ getLength()

unsigned llvm::MDString::getLength ( ) const

Definition at line 621 of file Metadata.h.

References llvm::StringRef::size().

◆ getString()

StringRef MDString::getString ( ) const

◆ operator=() [1/2]

MDString& llvm::MDString::operator= ( MDString &&  )

◆ operator=() [2/2]

MDString& llvm::MDString::operator= ( const MDString )

Friends And Related Function Documentation

◆ StringMapEntry< MDString >

friend class StringMapEntry< MDString >

Definition at line 603 of file Metadata.h.

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