summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendAction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-25 00:45:27 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-25 00:45:27 +0000
commitc1bbec85a87c9a929b1814a0b316ed28e6e224af (patch)
tree52553ca2fa5983fd631cf24de2c553baecd96384 /clang/lib/Frontend/FrontendAction.cpp
parent00a50f742a5f7c4d95645558d3e7f961f4613a71 (diff)
downloadbcm5719-llvm-c1bbec85a87c9a929b1814a0b316ed28e6e224af.tar.gz
bcm5719-llvm-c1bbec85a87c9a929b1814a0b316ed28e6e224af.zip
Rename the -cc1 option "-generate-module-index" to
"-fmodules-global-index" and expand its behavior to include both the use and generation of the global module index. llvm-svn: 173404
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index 4b642b395cb..05064fbd4f3 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -382,10 +382,9 @@ bool FrontendAction::Execute() {
else ExecuteAction();
// If we are supposed to rebuild the global module index, do so now unless
- // an error occurred.
- if (CI.getBuildGlobalModuleIndex() && CI.hasFileManager() &&
- CI.hasPreprocessor() &&
- (!CI.hasDiagnostics() || !CI.getDiagnostics().hasErrorOccurred())) {
+ // there were any module-build failures.
+ if (CI.shouldBuildGlobalModuleIndex() && CI.hasFileManager() &&
+ CI.hasPreprocessor()) {
GlobalModuleIndex::writeIndex(
CI.getFileManager(),
CI.getPreprocessor().getHeaderSearchInfo().getModuleCachePath());
OpenPOWER on IntegriCloud