diff options
author | Devang Patel <dpatel@apple.com> | 2011-03-04 01:20:33 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-03-04 01:20:33 +0000 |
commit | 566bd12e54247b96823112e945e67ed7b9b7dce0 (patch) | |
tree | 98bf31e12e1249f064ae17127809389d89c60198 /include | |
parent | 40a42a2ccaaa19a109667ed7abf224cc8733cd9c (diff) | |
download | external_llvm-566bd12e54247b96823112e945e67ed7b9b7dce0.zip external_llvm-566bd12e54247b96823112e945e67ed7b9b7dce0.tar.gz external_llvm-566bd12e54247b96823112e945e67ed7b9b7dce0.tar.bz2 |
Add ArrayRef variant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Metadata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index a6c3f03..6a61996 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 |