diff options
| author | Tim Shen <timshen91@gmail.com> | 2016-08-22 21:09:30 +0000 |
|---|---|---|
| committer | Tim Shen <timshen91@gmail.com> | 2016-08-22 21:09:30 +0000 |
| commit | f2187ed3210377902124b326957f8721bb58733a (patch) | |
| tree | 4505affdaf0d52c11907f4132beb6b21aae6a92c /clang/lib | |
| parent | b29ec1e040fb798418eee8a14e13f9df7c372658 (diff) | |
| download | bcm5719-llvm-f2187ed3210377902124b326957f8721bb58733a.tar.gz bcm5719-llvm-f2187ed3210377902124b326957f8721bb58733a.zip | |
[GraphTraits] Replace all NodeType usage with NodeRef
This should finish the GraphTraits migration.
Differential Revision: http://reviews.llvm.org/D23730
llvm-svn: 279475
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Serialization/ModuleManager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index bc57d8cbc7a..f6452480882 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -433,16 +433,15 @@ bool ModuleManager::lookupModuleFile(StringRef FileName, namespace llvm { template<> struct GraphTraits<ModuleManager> { - typedef ModuleFile NodeType; typedef ModuleFile *NodeRef; typedef llvm::SetVector<ModuleFile *>::const_iterator ChildIteratorType; typedef ModuleManager::ModuleConstIterator nodes_iterator; - - static ChildIteratorType child_begin(NodeType *Node) { + + static ChildIteratorType child_begin(NodeRef Node) { return Node->Imports.begin(); } - static ChildIteratorType child_end(NodeType *Node) { + static ChildIteratorType child_end(NodeRef Node) { return Node->Imports.end(); } |

