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 | 093811593ef84a6a4180cd38af202fae0d30160f (patch) | |
tree | bf636ad23ea643f4a09b62d46a06febb04e62ae2 /lib | |
parent | dfc8536d7bedbd7ce826235d7b408c4e969ccc8c (diff) | |
download | external_llvm-093811593ef84a6a4180cd38af202fae0d30160f.zip external_llvm-093811593ef84a6a4180cd38af202fae0d30160f.tar.gz external_llvm-093811593ef84a6a4180cd38af202fae0d30160f.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, |