summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-03-04 01:20:33 +0000
committerDevang Patel <dpatel@apple.com>2011-03-04 01:20:33 +0000
commit566bd12e54247b96823112e945e67ed7b9b7dce0 (patch)
tree98bf31e12e1249f064ae17127809389d89c60198 /include/llvm
parent40a42a2ccaaa19a109667ed7abf224cc8733cd9c (diff)
downloadllvm-566bd12e54247b96823112e945e67ed7b9b7dce0.tar.gz
llvm-566bd12e54247b96823112e945e67ed7b9b7dce0.tar.bz2
llvm-566bd12e54247b96823112e945e67ed7b9b7dce0.tar.xz
Add ArrayRef variant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Metadata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index a6c3f039a1..6a61996ff7 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -17,6 +17,7 @@
#define LLVM_METADATA_H
#include "llvm/Value.h"
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/ilist_node.h"
@@ -117,6 +118,8 @@ class MDNode : public Value, public FoldingSetNode {
FunctionLocalness FL, bool Insert = true);
public:
// Constructors and destructors.
+ static MDNode *get(LLVMContext &Context, ArrayRef<Value*> V);
+ // FIXME: Eliminate this constructor form.
static MDNode *get(LLVMContext &Context, Value *const *Vals,
unsigned NumVals);
// getWhenValsUnresolved - Construct MDNode determining function-localness