diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-28 18:38:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-28 18:38:02 +0000 |
commit | 137f1b991e4bab3e16a95a5a6ef1eba1b9c720cb (patch) | |
tree | 59a560af09e98587258050f2861c95a916cefe5e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2e4ae4e1548aff9dace97240355c0cf73d2d3646 (diff) | |
download | bcm5719-llvm-137f1b991e4bab3e16a95a5a6ef1eba1b9c720cb.tar.gz bcm5719-llvm-137f1b991e4bab3e16a95a5a6ef1eba1b9c720cb.zip |
Enable the global module index by default. Introduce the
-fno-modules-global-index -cc1 option to allow one to disable the
index for performance testing purposes, but with a 10% win in
-fsyntax-only time, there is no reason a user would do this.
llvm-svn: 173707
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 9c965c05e5e..b200637cb57 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -689,7 +689,7 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, Opts.FixAndRecompile = Args.hasArg(OPT_fixit_recompile); Opts.FixToTemporaries = Args.hasArg(OPT_fixit_to_temp); Opts.ASTDumpFilter = Args.getLastArgValue(OPT_ast_dump_filter); - Opts.UseGlobalModuleIndex = Args.hasArg(OPT_fmodules_global_index); + Opts.UseGlobalModuleIndex = !Args.hasArg(OPT_fno_modules_global_index); Opts.GenerateGlobalModuleIndex = Opts.UseGlobalModuleIndex; Opts.CodeCompleteOpts.IncludeMacros |