LLVM API Documentation
#include <Metadata.h>
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) | |
Definition at line 66 of file Metadata.h.
| llvm::MDString::MDString | ( | LLVMContext & | C, | |
| const char * | begin, | |||
| unsigned | l | |||
| ) | [inline, explicit, protected] |
Definition at line 73 of file Metadata.h.
| void* llvm::MDString::operator new | ( | size_t | s | ) | [inline] |
| MDString * MDString::get | ( | LLVMContext & | Context, | |
| const StringRef & | Str | |||
| ) | [static] |
Definition at line 52 of file Metadata.cpp.
References llvm::LLVMContextImpl::ConstantsLock, Entry, llvm::StringMapEntry< ValueTy >::getKeyData(), llvm::StringMapEntryBase::getKeyLength(), llvm::StringMapEntry< ValueTy >::getValue(), llvm::LLVMContextImpl::MDStringCache, llvm::LLVMContext::pImpl, and S.
| StringRef llvm::MDString::getString | ( | ) | const [inline] |
Definition at line 83 of file Metadata.h.
| unsigned llvm::MDString::length | ( | ) | const [inline] |
| 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().
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 96 of file Metadata.h.
Reimplemented from llvm::MetadataBase.
Definition at line 97 of file Metadata.h.
References llvm::Value::getValueID(), and llvm::Value::MDStringVal.