]> granicus.if.org Git - clang/commitdiff
[GraphWriter] Change GraphWriter to use NodeRef in GraphTraits
authorTim Shen <timshen91@gmail.com>
Wed, 17 Aug 2016 20:02:38 +0000 (20:02 +0000)
committerTim Shen <timshen91@gmail.com>
Wed, 17 Aug 2016 20:02:38 +0000 (20:02 +0000)
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

lib/Serialization/ModuleManager.cpp

index 8692f9e2132e6905a24aab60402e801422398eb9..93709c8f2f646169827d130af594304d9ac46dd4 100644 (file)
@@ -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;