diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-25 00:45:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-25 00:45:27 +0000 |
commit | f575d6e7c3b887ea4c5394d2c7e322c7a929a57e (patch) | |
tree | 325c8ea980071f606958a9412bb41b0bdcaa3678 /include/clang/Frontend/CompilerInstance.h | |
parent | e169807aaea2464cbe68305f013ec7b41625af30 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInstance.h')
-rw-r--r-- | include/clang/Frontend/CompilerInstance.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/clang/Frontend/CompilerInstance.h b/include/clang/Frontend/CompilerInstance.h index d6b3afad8c..a17e1c8f5b 100644 --- a/include/clang/Frontend/CompilerInstance.h +++ b/include/clang/Frontend/CompilerInstance.h @@ -117,6 +117,9 @@ class CompilerInstance : public ModuleLoader { /// have finished with this translation unit. bool BuildGlobalModuleIndex; + /// \brief One or more modules failed to build. + bool ModuleBuildFailed; + /// \brief Holds information about the output file. /// /// If TempFilename is not empty we must rename it to Filename at the end. @@ -191,8 +194,8 @@ public: void setInvocation(CompilerInvocation *Value); /// \brief Indicates whether we should (re)build the global module index. - bool getBuildGlobalModuleIndex() const { return BuildGlobalModuleIndex; } - + bool shouldBuildGlobalModuleIndex() const; + /// \brief Set the flag indicating whether we should (re)build the global /// module index. void setBuildGlobalModuleIndex(bool Build) { @@ -549,7 +552,8 @@ public: bool DisablePCHValidation, bool AllowPCHWithCompilerErrors, Preprocessor &PP, ASTContext &Context, - void *DeserializationListener, bool Preamble); + void *DeserializationListener, bool Preamble, + bool UseGlobalModuleIndex); /// Create a code completion consumer using the invocation; note that this /// will cause the source manager to truncate the input source file at the |