From: Tim Shen Date: Wed, 17 Aug 2016 20:02:38 +0000 (+0000) Subject: [GraphWriter] Change GraphWriter to use NodeRef in GraphTraits X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8dd3abebe50fc69a9bdd080160e8c0f02cef742b;p=clang [GraphWriter] Change GraphWriter to use NodeRef in GraphTraits Summary: Corresponding LLVM patch: D23580 Reviewers: dblaikie Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23581 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278963 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Serialization/ModuleManager.cpp b/lib/Serialization/ModuleManager.cpp index 8692f9e213..93709c8f2f 100644 --- a/lib/Serialization/ModuleManager.cpp +++ b/lib/Serialization/ModuleManager.cpp @@ -434,6 +434,7 @@ namespace llvm { template<> struct GraphTraits { typedef ModuleFile NodeType; + typedef ModuleFile *NodeRef; typedef llvm::SetVector::const_iterator ChildIteratorType; typedef ModuleManager::ModuleConstIterator nodes_iterator;