aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 17:12:48 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 17:12:48 +0000
commit77cf22c451c987a1c128e8ea5b9ed9e2d4655eeb (patch)
treeb25947450370050d34199f7a34aa5ca39a109b5e /lib
parentb43eae745eb9a7c46fe76b0ed8053b782ca67536 (diff)
downloadexternal_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')
-rw-r--r--lib/VMCore/LLVMContext.cpp6
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,