forked from OSchip/llvm-project
IR: Be specific about what MDNode::get() returns, NFC
llvm-svn: 226494
This commit is contained in:
parent
3aef9b1392
commit
286d7cf9de
|
@ -693,10 +693,10 @@ protected:
|
||||||
MDOperand *mutable_end() { return reinterpret_cast<MDOperand *>(this); }
|
MDOperand *mutable_end() { return reinterpret_cast<MDOperand *>(this); }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static inline MDNode *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
|
static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
|
||||||
static inline MDNode *getIfExists(LLVMContext &Context,
|
static inline MDTuple *getIfExists(LLVMContext &Context,
|
||||||
ArrayRef<Metadata *> MDs);
|
ArrayRef<Metadata *> MDs);
|
||||||
static inline MDNode *getDistinct(LLVMContext &Context,
|
static inline MDTuple *getDistinct(LLVMContext &Context,
|
||||||
ArrayRef<Metadata *> MDs);
|
ArrayRef<Metadata *> MDs);
|
||||||
|
|
||||||
/// \brief Return a temporary MDNode
|
/// \brief Return a temporary MDNode
|
||||||
|
@ -881,13 +881,13 @@ private:
|
||||||
void eraseFromStoreImpl();
|
void eraseFromStoreImpl();
|
||||||
};
|
};
|
||||||
|
|
||||||
MDNode *MDNode::get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
|
MDTuple *MDNode::get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
|
||||||
return MDTuple::get(Context, MDs);
|
return MDTuple::get(Context, MDs);
|
||||||
}
|
}
|
||||||
MDNode *MDNode::getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
|
MDTuple *MDNode::getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
|
||||||
return MDTuple::getIfExists(Context, MDs);
|
return MDTuple::getIfExists(Context, MDs);
|
||||||
}
|
}
|
||||||
MDNode *MDNode::getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
|
MDTuple *MDNode::getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
|
||||||
return MDTuple::getDistinct(Context, MDs);
|
return MDTuple::getDistinct(Context, MDs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue