IR: MDNode => Value: Instruction::setMetadata()

Change `Instruction::setMetadata()` API to accept `Value` instead of
`MDNode`.  Part of PR21433.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2014-10-31 20:13:11 +00:00
parent 2d32816a45
commit 815275f5de
3 changed files with 13 additions and 10 deletions

View File

@@ -176,9 +176,9 @@ public:
/// setMetadata - Set the metadata of the specified kind to the specified
/// node. This updates/replaces metadata if already present, or removes it if
/// Node is null.
void setMetadata(unsigned KindID, MDNode *Node);
void setMetadata(StringRef Kind, MDNode *Node);
/// MD is null.
void setMetadata(unsigned KindID, Value *MD);
void setMetadata(StringRef Kind, Value *MD);
/// \brief Drop unknown metadata.
/// Passes are required to drop metadata they don't understand. This is a