r278963 - [GraphWriter] Change GraphWriter to use NodeRef in GraphTraits

Tim Shen via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 17 13:02:38 PDT 2016


Author: timshen
Date: Wed Aug 17 15:02:38 2016
New Revision: 278963

URL: http://llvm.org/viewvc/llvm-project?rev=278963&view=rev
Log:
[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

Modified:
    cfe/trunk/lib/Serialization/ModuleManager.cpp

Modified: cfe/trunk/lib/Serialization/ModuleManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ModuleManager.cpp?rev=278963&r1=278962&r2=278963&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ModuleManager.cpp (original)
+++ cfe/trunk/lib/Serialization/ModuleManager.cpp Wed Aug 17 15:02:38 2016
@@ -434,6 +434,7 @@ namespace llvm {
   template<>
   struct GraphTraits<ModuleManager> {
     typedef ModuleFile NodeType;
+    typedef ModuleFile *NodeRef;
     typedef llvm::SetVector<ModuleFile *>::const_iterator ChildIteratorType;
     typedef ModuleManager::ModuleConstIterator nodes_iterator;
     




More information about the cfe-commits mailing list