From 58a230a4917592f5c529cb40e75bfc3e1c681b69 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 29 Sep 2009 20:30:57 +0000 Subject: Only one custom meadata of each kind can be attached with an instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83105 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Metadata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/Metadata.h') diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index 2f740a6..8ad7aaf 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -342,8 +342,8 @@ public: /// getMDs - Get the metadata attached with an Instruction. const MDMapTy *getMDs(const Instruction *Inst); - /// setMD - Attach the metadata of given kind with an Instruction. - void setMD(unsigned Kind, MDNode *Node, Instruction *Inst); + /// addMD - Attach the metadata of given kind with an Instruction. + void addMD(unsigned Kind, MDNode *Node, Instruction *Inst); /// getHandlerNames - Get handler names. This is used by bitcode /// writer. -- cgit v1.1