LLVM API Documentation

llvm::MDString Class Reference

#include <Metadata.h>

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

List of all members.

Public Member Functions

void * operator new (size_t s)
StringRef getString () const
unsigned length () const
const char * begin () const
const char * end () const

Static Public Member Functions

static MDString * get (LLVMContext &Context, const StringRef &Str)
static bool classof (const MDString *)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)

Protected Member Functions

 MDString (LLVMContext &C, const char *begin, unsigned l)


Detailed Description

MDString - a single uniqued string. These are used to efficiently contain a byte sequence for metadata. MDString is always unnamd.

Definition at line 66 of file Metadata.h.


Constructor & Destructor Documentation

llvm::MDString::MDString ( LLVMContext &  C,
const char *  begin,
unsigned  l 
) [inline, explicit, protected]

Definition at line 73 of file Metadata.h.


Member Function Documentation

void* llvm::MDString::operator new ( size_t  s  )  [inline]

Reimplemented from llvm::User.

Definition at line 78 of file Metadata.h.

References operator new().

MDString * MDString::get ( LLVMContext &  Context,
const StringRef &  Str 
) [static]

StringRef llvm::MDString::getString (  )  const [inline]

Definition at line 83 of file Metadata.h.

unsigned llvm::MDString::length (  )  const [inline]

Definition at line 85 of file Metadata.h.

References llvm::StringRef::size().

const char* llvm::MDString::begin (  )  const [inline]

begin() - Pointer to the first byte of the string.

Definition at line 89 of file Metadata.h.

References llvm::StringRef::begin().

const char* llvm::MDString::end (  )  const [inline]

end() - Pointer to one byte past the end of the string.

Definition at line 93 of file Metadata.h.

References llvm::StringRef::end().

static bool llvm::MDString::classof ( const MDString *   )  [inline, static]

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

Definition at line 96 of file Metadata.h.

static bool llvm::MDString::classof ( const Value *  V  )  [inline, static]

Reimplemented from llvm::MetadataBase.

Definition at line 97 of file Metadata.h.

References llvm::Value::getValueID(), and llvm::Value::MDStringVal.


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