summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/Modularize.cpp
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-06-04 23:35:19 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-06-04 23:35:19 +0000
commit96f5551b036590fed75490f4c2fe4c5af0224f9b (patch)
tree460309190fd01945eb776280eea66829923a55a3 /clang-tools-extra/modularize/Modularize.cpp
parentbb2591f5efca96f110e4e7cd57f78bda9c652269 (diff)
downloadbcm5719-llvm-96f5551b036590fed75490f4c2fe4c5af0224f9b.tar.gz
bcm5719-llvm-96f5551b036590fed75490f4c2fe4c5af0224f9b.zip
Fixed modularize to warn about missing headers referenced in a module map.
llvm-svn: 239122
Diffstat (limited to 'clang-tools-extra/modularize/Modularize.cpp')
-rw-r--r--clang-tools-extra/modularize/Modularize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/modularize/Modularize.cpp b/clang-tools-extra/modularize/Modularize.cpp
index 65ed3eadc70..667cd01cdf3 100644
--- a/clang-tools-extra/modularize/Modularize.cpp
+++ b/clang-tools-extra/modularize/Modularize.cpp
@@ -738,8 +738,8 @@ int main(int Argc, const char **Argv) {
ListFileNames, HeaderPrefix));
// Get header file names and dependencies.
- ModUtil->loadAllHeaderListsAndDependencies();
-
+ if (ModUtil->loadAllHeaderListsAndDependencies())
+ HadErrors = 1;
// If we are in assistant mode, output the module map and quit.
if (ModuleMapPath.length() != 0) {
OpenPOWER on IntegriCloud