diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-02 17:12:48 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-02 17:12:48 +0000 |
commit | 77cf22c451c987a1c128e8ea5b9ed9e2d4655eeb (patch) | |
tree | b25947450370050d34199f7a34aa5ca39a109b5e /lib/VMCore | |
parent | b43eae745eb9a7c46fe76b0ed8053b782ca67536 (diff) | |
download | external_llvm-77cf22c451c987a1c128e8ea5b9ed9e2d4655eeb.zip external_llvm-77cf22c451c987a1c128e8ea5b9ed9e2d4655eeb.tar.gz external_llvm-77cf22c451c987a1c128e8ea5b9ed9e2d4655eeb.tar.bz2 |
Add accessor for MDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 1987463..6e06c55 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -15,6 +15,7 @@ #include "llvm/LLVMContext.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" +#include "llvm/MDNode.h" #include "llvm/Support/ManagedStatic.h" #include "LLVMContextImpl.h" @@ -405,6 +406,11 @@ ConstantVector* LLVMContext::getConstantVectorAllOnes(const VectorType* Ty) { return ConstantVector::getAllOnesValue(Ty); } +// MDNode accessors +MDNode* LLVMContext::getMDNode(Value* const* Vals, unsigned NumVals) { + return MDNode::get(Vals, NumVals); +} + // FunctionType accessors FunctionType* LLVMContext::getFunctionType(const Type* Result, const std::vector<const Type*>& Params, |