diff options
Diffstat (limited to 'include/llvm')
-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 0f8722dc..8b0c104 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 /// @{ |