diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-04-12 20:58:33 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-04-12 20:58:33 +0000 |
commit | f63556d8b44b209e741833b0e6be3f8e72a1d91a (patch) | |
tree | ba003bf67e52c55b5e9e1808b07ca4280d39da30 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 05bf27ac3f560cc798b20a352450d3b6bc20e72b (diff) | |
download | bcm5719-llvm-f63556d8b44b209e741833b0e6be3f8e72a1d91a.tar.gz bcm5719-llvm-f63556d8b44b209e741833b0e6be3f8e72a1d91a.zip |
Modular Codegen: Separate flags for function and debug info support
This allows using and testing these two features separately. (noteably,
debug info is, so far as I know, always a win (basically). But function
modular codegen is currently a loss for highly optimized code - where
most of the linkonce_odr definitions are optimized away, so providing
weak_odr definitions is only overhead)
llvm-svn: 300104
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index b9c24ab6c00..1ebaf8f4d8b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2017,7 +2017,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Args.hasArg(OPT_fmodules_decluse) || Opts.ModulesStrictDeclUse; Opts.ModulesLocalVisibility = Args.hasArg(OPT_fmodules_local_submodule_visibility) || Opts.ModulesTS; - Opts.ModularCodegen = Args.hasArg(OPT_fmodule_codegen); + Opts.ModulesCodegen = Args.hasArg(OPT_fmodules_codegen); + Opts.ModulesDebugInfo = Args.hasArg(OPT_fmodules_debuginfo); Opts.ModulesSearchAll = Opts.Modules && !Args.hasArg(OPT_fno_modules_search_all) && Args.hasArg(OPT_fmodules_search_all); |