From c888b87713c5a74775f48dcddbebc7ebe9c0694f Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 19 Jan 2015 19:32:27 +0000 Subject: [PATCH] IR: Be specific about what MDNode::get() returns, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226494 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Metadata.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/llvm/IR/Metadata.h b/include/llvm/IR/Metadata.h index 05a981d2313..a7fc7b7e51e 100644 --- a/include/llvm/IR/Metadata.h +++ b/include/llvm/IR/Metadata.h @@ -693,11 +693,11 @@ protected: MDOperand *mutable_end() { return reinterpret_cast(this); } public: - static inline MDNode *get(LLVMContext &Context, ArrayRef MDs); - static inline MDNode *getIfExists(LLVMContext &Context, - ArrayRef MDs); - static inline MDNode *getDistinct(LLVMContext &Context, - ArrayRef MDs); + static inline MDTuple *get(LLVMContext &Context, ArrayRef MDs); + static inline MDTuple *getIfExists(LLVMContext &Context, + ArrayRef MDs); + static inline MDTuple *getDistinct(LLVMContext &Context, + ArrayRef MDs); /// \brief Return a temporary MDNode /// @@ -881,13 +881,13 @@ private: void eraseFromStoreImpl(); }; -MDNode *MDNode::get(LLVMContext &Context, ArrayRef MDs) { +MDTuple *MDNode::get(LLVMContext &Context, ArrayRef MDs) { return MDTuple::get(Context, MDs); } -MDNode *MDNode::getIfExists(LLVMContext &Context, ArrayRef MDs) { +MDTuple *MDNode::getIfExists(LLVMContext &Context, ArrayRef MDs) { return MDTuple::getIfExists(Context, MDs); } -MDNode *MDNode::getDistinct(LLVMContext &Context, ArrayRef MDs) { +MDTuple *MDNode::getDistinct(LLVMContext &Context, ArrayRef MDs) { return MDTuple::getDistinct(Context, MDs); }