aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-08-22 21:09:30 +0000
committerTim Shen <timshen91@gmail.com>2016-08-22 21:09:30 +0000
commitf2187ed3210377902124b326957f8721bb58733a (patch)
tree4505affdaf0d52c11907f4132beb6b21aae6a92c /clang/lib/Serialization/ModuleManager.cpp
parentb29ec1e040fb798418eee8a14e13f9df7c372658 (diff)
downloadllvm-f2187ed3210377902124b326957f8721bb58733a.zip
llvm-f2187ed3210377902124b326957f8721bb58733a.tar.gz
llvm-f2187ed3210377902124b326957f8721bb58733a.tar.bz2
[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/Serialization/ModuleManager.cpp')
-rw-r--r--clang/lib/Serialization/ModuleManager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp
index bc57d8c..f645248 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();
}