diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-30 23:59:04 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-30 23:59:04 +0000 |
commit | 49fe6c914c5f356a97619046384d7ceb2cb5187e (patch) | |
tree | 985d23cf65e67074b45ca6f7dd01947fa7d554ef /include/llvm/Module.h | |
parent | f1da1f5f97b3e0b79381eaf39e827dd723abfb65 (diff) |
Add getOrInsertNamedMetadata().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 0f8722dc9d..8b0c104a2b 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -303,11 +303,16 @@ public: /// @name Named Metadata Accessors /// @{ public: - /// getNamedMetadata - Return the first named MDNode in the module with the - /// specified name. This method returns null if a MDNode with the specified - /// name is not found. + /// getNamedMetadata - Return the first NamedMDNode in the module with the + /// specified name. This method returns null if a NamedMDNode with the + /// specified name is not found. NamedMDNode *getNamedMetadata(const StringRef &Name) const; + /// getOrInsertNamedMetadata - Return the first named MDNode in the module + /// with the specified name. This method returns a new NamedMDNode if a + /// NamedMDNode with the specified name is not found. + NamedMDNode *getOrInsertNamedMetadata(const StringRef &Name); + /// @} /// @name Type Accessors /// @{ |