diff options
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index a5a2ad4600..3c8055d09f 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -57,6 +57,7 @@ template<> struct ilist_traits<GlobalAlias> static GlobalAlias *createSentinel(); static void destroySentinel(GlobalAlias *GA) { delete GA; } }; + template<> struct ilist_traits<NamedMDNode> : public SymbolTableListTraits<NamedMDNode, Module> { // createSentinel is used to get hold of a node that marks the end of @@ -69,6 +70,8 @@ template<> struct ilist_traits<NamedMDNode> NamedMDNode *provideInitialHead() const { return createSentinel(); } NamedMDNode *ensureHead(NamedMDNode*) const { return createSentinel(); } static void noteHead(NamedMDNode*, NamedMDNode*) {} + void addNodeToList(NamedMDNode *N); + void removeNodeFromList(NamedMDNode *N); private: mutable ilist_node<NamedMDNode> Sentinel; }; @@ -324,10 +327,6 @@ public: /// NamedMDNode with the specified name is not found. NamedMDNode *getOrInsertNamedMetadata(StringRef Name); - /// addMDNodeName - Insert an entry in the NamedMDNode symbol table mapping - /// Name to NMD. - void addMDNodeName(StringRef Name, NamedMDNode *NMD); - /// @} /// @name Type Accessors /// @{ |