diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h index 83c1b11d1ac..a8339fde2f0 100644 --- a/include/llvm/Analysis/DSNode.h +++ b/include/llvm/Analysis/DSNode.h @@ -220,9 +220,13 @@ public: private: friend class DSNodeHandle; + // addReferrer - Keep the referrer set up to date... void addReferrer(DSNodeHandle *H) { Referrers.push_back(H); } void removeReferrer(DSNodeHandle *H); + + // static mergeNodes - Helper for mergeWith() + static void MergeNodes(DSNodeHandle& CurNodeH, DSNodeHandle& NH); }; diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 83c1b11d1ac..a8339fde2f0 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -220,9 +220,13 @@ public: private: friend class DSNodeHandle; + // addReferrer - Keep the referrer set up to date... void addReferrer(DSNodeHandle *H) { Referrers.push_back(H); } void removeReferrer(DSNodeHandle *H); + + // static mergeNodes - Helper for mergeWith() + static void MergeNodes(DSNodeHandle& CurNodeH, DSNodeHandle& NH); };