diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-29 20:30:57 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-29 20:30:57 +0000 |
commit | 58a230a4917592f5c529cb40e75bfc3e1c681b69 (patch) | |
tree | b2f31e6fba7970c32de4cfccd755ed35a1188b6b /include/llvm/Metadata.h | |
parent | a9a9c95f6789946d5df34185725fc28cebad8b16 (diff) | |
download | external_llvm-58a230a4917592f5c529cb40e75bfc3e1c681b69.zip external_llvm-58a230a4917592f5c529cb40e75bfc3e1c681b69.tar.gz external_llvm-58a230a4917592f5c529cb40e75bfc3e1c681b69.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r-- | include/llvm/Metadata.h | 4 |
1 files changed, 2 insertions, 2 deletions
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. |