mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user