diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2015-02-19 14:31:48 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2015-02-19 14:31:48 +0000 |
commit | 3c9fb5221863f6d4946de55ed26e76e51f0efa68 (patch) | |
tree | 30f7377491a583a2e0886102ab41bbe5cd40b7f0 /clang-tools-extra/modularize/ModularizeUtilities.cpp | |
parent | c56dcd52be9668def76f2ba4c5ef33b0c900fad6 (diff) | |
download | bcm5719-llvm-3c9fb5221863f6d4946de55ed26e76e51f0efa68.tar.gz bcm5719-llvm-3c9fb5221863f6d4946de55ed26e76e51f0efa68.zip |
Pruned some unneeded code and comments.
llvm-svn: 229855
Diffstat (limited to 'clang-tools-extra/modularize/ModularizeUtilities.cpp')
-rw-r--r-- | clang-tools-extra/modularize/ModularizeUtilities.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang-tools-extra/modularize/ModularizeUtilities.cpp b/clang-tools-extra/modularize/ModularizeUtilities.cpp index 03328c80193..afc03d49bd5 100644 --- a/clang-tools-extra/modularize/ModularizeUtilities.cpp +++ b/clang-tools-extra/modularize/ModularizeUtilities.cpp @@ -214,7 +214,7 @@ std::error_code ModularizeUtilities::loadModuleMap( // Collect module map headers. // Walks the modules and collects referenced headers into -// ModuleMapHeadersSet. +// HeaderFileNames. bool ModularizeUtilities::collectModuleMapHeaders(clang::ModuleMap *ModMap) { for (ModuleMap::module_iterator I = ModMap->module_begin(), E = ModMap->module_end(); @@ -227,7 +227,7 @@ bool ModularizeUtilities::collectModuleMapHeaders(clang::ModuleMap *ModMap) { // Collect referenced headers from one module. // Collects the headers referenced in the given module into -// HeaderFileNames and ModuleMapHeadersSet. +// HeaderFileNames. bool ModularizeUtilities::collectModuleHeaders(const Module &Mod) { // Ignore explicit modules because they often have dependencies @@ -248,7 +248,6 @@ bool ModularizeUtilities::collectModuleHeaders(const Module &Mod) { std::string HeaderPath = getCanonicalPath(UmbrellaHeader->getName()); // Collect umbrella header. HeaderFileNames.push_back(HeaderPath); - ModuleMapHeadersSet.insert(HeaderPath); // FUTURE: When needed, umbrella header header collection goes here. } @@ -306,7 +305,6 @@ bool ModularizeUtilities::collectUmbrellaHeaders(StringRef UmbrellaDirName, continue; // Save header name. std::string HeaderPath = getCanonicalPath(File); - ModuleMapHeadersSet.insert(HeaderPath); Dependents.push_back(HeaderPath); } return true; |