diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-02 17:19:47 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-02 17:19:47 +0000 |
commit | 82f496494120bdf8903d9606041bb04c234828f9 (patch) | |
tree | bf636ad23ea643f4a09b62d46a06febb04e62ae2 /lib | |
parent | cf398c852f849df0540617217fd02bc5a99bbdac (diff) | |
download | external_llvm-82f496494120bdf8903d9606041bb04c234828f9.zip external_llvm-82f496494120bdf8903d9606041bb04c234828f9.tar.gz external_llvm-82f496494120bdf8903d9606041bb04c234828f9.tar.bz2 |
Add accessors for metadata constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 6e06c55..fd69c4c 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -411,6 +411,15 @@ MDNode* LLVMContext::getMDNode(Value* const* Vals, unsigned NumVals) { return MDNode::get(Vals, NumVals); } +// MDString accessors +MDString* LLVMContext::getMDString(const char *StrBegin, const char *StrEnd) { + return MDString::get(StrBegin, StrEnd); +} + +MDString* LLVMContext::getMDString(const std::string &Str) { + return MDString::get(Str); +} + // FunctionType accessors FunctionType* LLVMContext::getFunctionType(const Type* Result, const std::vector<const Type*>& Params, |