summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-04 23:32:19 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-04 23:32:19 +0000
commiteb90e830850eca0c71886ad64ff2a7d0ff492ddb (patch)
treeeec40f4aa6b52114a60361f4342d5af3a6f6a61b /clang/lib/Sema/Sema.cpp
parentf7168395806ba2b676150c4a025830ca47adb1c6 (diff)
downloadbcm5719-llvm-eb90e830850eca0c71886ad64ff2a7d0ff492ddb.tar.gz
bcm5719-llvm-eb90e830850eca0c71886ad64ff2a7d0ff492ddb.zip
Store the submodules of a module in source order, as they are stored
in the module map. This provides a bit more predictability for the user, as well as eliminating the need to sort the submodules when serializing them. llvm-svn: 147564
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index c95cf224cd4..c8199042b72 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -503,10 +503,10 @@ void Sema::ActOnEndOfTranslationUnit() {
ModMap.resolveExports(Mod, /*Complain=*/false);
// Queue the submodules, so their exports will also be resolved.
- for (llvm::StringMap<Module *>::iterator Sub = Mod->SubModules.begin(),
- SubEnd = Mod->SubModules.end();
+ for (Module::submodule_iterator Sub = Mod->submodule_begin(),
+ SubEnd = Mod->submodule_end();
Sub != SubEnd; ++Sub) {
- Stack.push_back(Sub->getValue());
+ Stack.push_back(*Sub);
}
}
}
OpenPOWER on IntegriCloud